I have a script app that communicates with Finder, System Events and Acrobat Pro.
Since Mojave, the OS insists on asking for permissions to “control” these 3 apps.
I.e the usual message “This script needs to control other applications to run.”
The problem is that the system never learns the approvals! I get the same dialogs on the next run.
Details
The script app can either be dropped a PDF file (which invokes its Open handler), or one can select a PDF file in Finder and then double-click the app (or start it via FastScripts) which invokes the Run handler, which in turn gets an alias to the selected file, after which it invokes the Open handler for that PDF file).
If it is dropped a file, it will only ask for these permissions the first time, and once approved, it will not protest on the next run, so the system “learns”.
But if the app is invoked via FastScripts, or double-clicked, thereby invoking the Run handler, it never “learns”. Sometimes it works, but mostly not without these dialogs. If, on every run, I change to a new selected pdf file, it seems to always (or almost always) ask for permissions.
The script does have properties, but they never change, and the date of the app never change upon successive runs.
The Run handler asks Finder to get the selection. If no PDF file is selected, it will invoke a “choose file” dialog (i.e belonging to Standard Additions). The “choose dialog” command is outside of the Finder block.
Obviously, System Integrity does not like the Run handler!
In System Preferences, the script app is listed under Security/Privacy/Automation, and I have even given it Full Disk Access,
What shall I do to prevent these extremely obnoxious dialogs?
(I have already read https://latenightsw.com/mojave-documentation/)
I really really regret that I “upgraded” to that obnoxious Mojave last year! It came with nothing but problems! El Capitan was nicer!