I’ve got some Applescript programs on my desktop that I use for configuring windows and apps. I just run them by double-clicking the desktop icon. I need to open tabs in Brave/Chrome, and, from what I can tell, the only way to do this is by saving my script as an “Enhanced Application”. Other methods aren’t given the option to control other apps by OSX.
I’m running Mojave on a 2012 MacBook Air, so we’re pretty close.
The main difference (probably) is that I have SIP turned off on this system to permit me to run AppleScript Osaxen I’m still dependent upon.
That said – I didn’t have any problem giving a couple of test non-enhanced AppleScript.apps permissions to interoperate with Google Chrome and Brave Browser.
Apps saved with Script Debugger 8.0.3.
If I remember correctly – Mojave should not require any special permissions for AppleScript apps created by the system owner.
No, you can use Apple applets too. The fact that one appears in your screenshot shows this to be true.
What I suspect you’re referring to is being regularly asked for permission. That happens with applets under some versions of the OS because running them modifies their top-level variables, which in turn results in a modified document, and therefore previously granted permissions are invalidated.
There are various ways around this issue: code-signing applets, using Script Debugger’s Lock Main Script preference, or rewriting scripts so all variables are are locals. if you hunt around the forum, you’ll see the issue has been addressed a few times.
@ccstone FastScripts was exactly what I needed, thank you!!!
To anyone else who comes across this – I’m not exactly sure why I couldn’t get things working before. But now I have FastScripts installed and a collection of scripts saved in plain text (.applescript) in ~/Library/Scripts. Everything works, and, since FastScripts is the entrypoint, I only have to worry about granting accessibility to FastScripts instead of every one of my scripts.