Since I moved to macOS at work all of that went away and I haven’t been able to find a good alternative to AutoHotKey for macOS. Although it’s hard to know if I can even attempt to run this at work with how locked down things have become.
If it helps, Tip runs in App Sandbox without requesting any additional permission.
This means Tip cannot read any file on your computer (other than the predefined places in its own sandbox) nor anything on other apps.
There are 2 limited things that it can do:
1. It can only execute the script that you provide at ~/Library/Application\ Scripts/tanin.tip/provider.script
2. It can only see the string that you activate Tip on. This is through NSService.
The privacy and security is top notch. Kudos to Apple who provides such good frameworks.
You can try requesting the app to be allowed from your IT team. I did this at my company (i.e. Stripe) as well.
I just got M1 last week, and it works.
Please let me know if it doesn't.
Obviously I'm not expecting you to go out of your way, but was wondering if you had plans for native support.
I do have plan to compile a native one. I will see when I can recompile it on M1. Thank you for letting me know.
Thinking about, MacOS has a long history of well integrated automation, with AppleScript, external callable function per window/app and they even had automator at some point. Not sure what happened to it. Linux had something similar with KDE and dcop, but it died at some point.
Apart from that, AppSandbox + NSUserUnixTask + NSService reallt enable this use case to have the highest privacy level. Without these 3, I would have had to request pervasive permissions on user's machine.
I have built a programmable tooltip for Mac. It works on any app. I use this hundreds of times a day at work for 2y now.
You can select any text and activate the tooltip with the short key. Then, the tooltip offers a list of options like jumping to URL, showing some extra info.
You are the one who write the script to process the text and return the options.
You can check it out here: github.com/tanin47/tip
PS. I configure a mouse button to trigger the Tip short key, so it is even more convenient.