Skip to content

AppleScript to create keyboard shortcuts

Last week my company laptop got stolen, so I had to setup my system again using this list. The positive part of each new system setup is you think more and more how to automate your setup..

This time I was really annoyed with setting up keyboard shortcuts, so I came up with this little AppleScript which does the work:

[gist id=652031 file=create_shortcuts.scpt]

The key is ‘GUI scripting’ - a specify way of AppleScript to simulate clicks, keystrokes etc. for *any* (native?) App. You only have to know the ids of the GUI elements which you can get with this very nice tool:

Good source to start your Mac Os X Automation is: