Last active
December 30, 2015 23:59
-
-
Save jaredmoody/7904511 to your computer and use it in GitHub Desktop.
Applescripts for positioning sublime and terminal
This file contains hidden or 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
# sets sublime to single column, | |
# moves the terminal to right half of 27" iMac | |
# this helps script work with quicksilver triggers | |
delay 0.01 | |
# make sublime single column | |
tell application "System Events" | |
keystroke "1" using {command down, option down} | |
end tell | |
# TODO: position sublime to left half of screen | |
# Move terminal to right half of first display | |
tell application "Terminal" | |
# get size of first window | |
# get position of first window | |
set position of first window to {1280, 22} | |
set size of first window to {1278, 1412} | |
set position of first window to {1280, 22} | |
end tell |
This file contains hidden or 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
# sets sublime to two column, | |
# moves current tab to second column, | |
# moves terminal to secondary display | |
# this helps the script work with quicksilver triggers | |
delay 0.01 | |
# set sublime to two columns and move current window to second column | |
tell application "System Events" | |
keystroke "2" using {command down, option down} | |
keystroke "2" using {shift down, control down} | |
end tell | |
# TODO: position sublime fullscreen | |
# move terminal to secondary display | |
tell application "Terminal" | |
# get position of first window | |
# get size of first window | |
set position of first window to {2560, 22} | |
set size of first window to {1677, 1028} | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment