I don’t know why it never occurred to me, but there is an Automator action from Finder that’s called Launch Application and that you can use to:
- register an Applescript (or any other) application in the Services menu,
- assign a shortcut to it,
- launch it without having to call it with Spotlight.
That saves the necessity to separately manage your AppleScript code, plus debugging from Automator is really not fun. . .
And it also gives you the ability to automatically call the application instead of using either Spotlight or the running application navigator (I don’t know what it is called, the thing that you trigger when you hit Command+Tab).
Anyway, now I have my Emacs Capture app from this weekend directly available with a shortcut, the only problem now being to make sure that the shortcut is particular enough that it does not conflict with existing application shortcuts. . .
Haha! That shortcut seems to work anywhere but in text fields, where it calls the spellchecker dialog...
Et voilà!
ps: Shortcuts has something similar, but it looks like it won’t accept applications that are not installed in /Applications, which is a pity.