Hacker News new | past | comments | ask | show | jobs | submit login

Have you tried AppleScript scripting? You can glue applications together and even use JavaScript if you’re not a fan of AppleScript



Did some, but the syntax wasn't my cup of tea. The _really_ great feature of AHK to me was having the triggers and the actions all in one place though, which is something I couldn't really replicate with AppleScript that only has the actions, with the triggers in Automator.

So with that runtime you could easily just write whatever would happen if you press which key combo (or do cronjob-like things managed by the runtime) and then write what happens inline.

Write it all to a single script, copy it to a coworker's computer, run it, several dozen key combos just work now.

That's something I couldn't manage to pull off in AppleScript or Automator, but then again maybe I was just too dumb.


Try Keyboard Maestro or BetterTouchTool. They remind me the most of AHK out of all the Apple options.

I also really like Hammerspoon. The desktop automation scene on macOS is strong.


I use KeyboardMaestro to run my applescript connection as well. It's the missing glue to easily assign hotkeys to scripts or make them automatically trigger when something on my mac happens




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: