Hammerspoon – macOS automation with Lua
I mean, macOS already has built in automation (with Automator) that you can write in AppleScript or JavaScript JXA. <a href="https://github.com/JXA-Cookbook/JXA-Cookbook" rel="nofollow">https://github.com/JXA-Cookbook/JXA-Cookbook</a> is not very updated but its wiki contains quite a bit of useful recipes.<p>Why would I prefer this over the built in option?