Script to add hotkey support to apps lacking it #285
-
Hello, I am using an old e-mail app that has been (poorly) ported to Mac and lacks proper hotkey support for basic functions such as mail send, mark as read/unread, etc. This means having to navigate through menus with the mouse, which is much slower. I would like to use Script Kit to:
I am proficient in JavaScript but totally new to ScriptKit. If you could give me the list of ScriptKit APIs to do all the above steps, I can write the necessary logic around it. Thank you very much :-) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Here you go, not Script Kit, but it's how I would do it 😇 2021-05-19.12-38-11.mp4 |
Beta Was this translation helpful? Give feedback.
-
I'd actually love it if ScriptKit provided a way to do this. The downside of using the built-in macOS Keyboard -> Shortcuts -> App Shortcuts approach is that it is not backed up as part of iCloud, so changing machines or syncing between two machines isn't possible. I use Keyboard Maestro to do this now, but would be neat if ScriptKit could have "Emulate key command" or "Select menu item" actions for this. |
Beta Was this translation helpful? Give feedback.
-
Fascinating! Looks like I could use But last night I also ended up using the same AppleScript API in this way:
The problem that I have with this approach is that I can't "scope this rebinding to a specific application, otherwise do nothing and let the key trigger do its normal behavior". In Keyboard Maestro I have this working by putting key remappings into groups that are only active in specific applications, like so: GroupingMacroThis way I can say "cmd-f while in Activity Monitor triggers cmd-option-f" and "cmd-f while in Spotify triggers cmd-l", and cmd-f in any other application will be unaffected. While I love Keyboard Maestro and would be lost without it, I'd love a way to do this in a way that is scriptable perhaps in ScriptKit. |
Beta Was this translation helpful? Give feedback.
Here you go, not Script Kit, but it's how I would do it 😇
2021-05-19.12-38-11.mp4