Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rwilcox/1683231 to your computer and use it in GitHub Desktop.
Save rwilcox/1683231 to your computer and use it in GitHub Desktop.
Move Document to new BBEdit window
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