Skip to content

Instantly share code, notes, and snippets.

@jaredmoody
Last active December 30, 2015 23:59
Show Gist options
  • Save jaredmoody/7904511 to your computer and use it in GitHub Desktop.
Save jaredmoody/7904511 to your computer and use it in GitHub Desktop.
Applescripts for positioning sublime and terminal
# 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
# 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