I currently use FastScripts. It includes all scripts in
~/Library/Scripts/, so you don't have to add scripts manually. It also supports application-specific scripts, and it has a few features that are useful with AppleScripts, like it stops a script before a
key code command until modifier keys are released.
If you have bought the Powerpack for Alfred 2, you can create workflows like this:
Hotkeys have a short delay by default, but you can reduce it by changing the trigger behavior:
KeyRemap4MacBook also supports running shell scripts:
<url type="shell">say a</url>
<autogen>__KeyToKey__ KeyCode::A, KeyCode::VK_OPEN_URL_SHELL_say_a</autogen>
Other applications that support assigning shortcuts to scripts:
Another option is to create an Automator service:
- Open Automator and choose the Service template.
- Check that the input type and application scope are correct, or change "selected text" to "no input" if the service does not receive any input.
- Add a Run Shell Script or Run AppleScript action for the script.
- Save the service and give it a shortcut from System Preferences.
There has been a bug since 10.7 where the shortcuts for services don't always work until you hover over the services menu from the menu bar. Shortcuts for services don't work when an application that doesn't have a services menu (like Tower) is frontmost. There is also a noticeable delay before services are run.