Skip to content

Instantly share code, notes, and snippets.

@saltcod
Created June 28, 2017 17:49
Show Gist options
  • Save saltcod/866c69f0ee5202fb235f25d0d011ff05 to your computer and use it in GitHub Desktop.
Save saltcod/866c69f0ee5202fb235f25d0d011ff05 to your computer and use it in GitHub Desktop.
Sick of resizing and moving applications like Sublime Text? Me too!
Details run-through: https://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote
And tl;dr->
1. You need to create an Automator script: https://dl.dropboxusercontent.com/s/l9pidneeeyzyvzb/2017-06-28%20at%203.15%20PM.png
2. The script you need is:
tell application "System Events" to tell application process "Sublime Text"
tell window 1
set {size, position} to {{1020, 1300}, {0, 0}}
end tell
end tell
3. Next, go to System Preferences > Keyboard > Shortcuts, and select Services and set a shortcut on the right https://dl.dropboxusercontent.com/s/z9xh2fdr19srf8b/2017-06-28%20at%203.18%20PM.png
4 Next go to Sys Prefs > Security and Privacy > Accessibility and make sure Finder, Sublime Text, Automator, and Script Editor all have access https://dl.dropboxusercontent.com/s/5uejco9rhj77zuj/2017-06-28%20at%203.19%20PM.png
5. SUCCESS!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment