Created
January 26, 2012 15:18
-
-
Save rwilcox/1683231 to your computer and use it in GitHub Desktop.
Move Document to new BBEdit window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "BBEdit" | |
set dest to make new text document | |
select dest | |
set oldLocation to text window 2 | |
move document 1 of oldLocation to dest's window | |
set files visible of dest's window to false | |
-- bounds are Left, top, right, bottom | |
set bounds of dest's window to {20, 20, 700, 1400} -- guesses at your resolution. Use Applescript Editor and the Record functionality to find the right values for you | |
--set bounds of oldLocation's window to {506, 44, 1430, 896} | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment