Not authorized to send apple events to Finder

I have an applescript application created in Script Editor on macOSS 10.14.6 - it is save as a run time only application and iss signed with hardened runtime.

I have the following keys in my plist:
NSAppleEventsUsageDescription com.apple.security.automation.apple-events

I was having issues running the applescript application and it was suggested that I run "tccutil reset ALL" in terminal. This removed all my apps from Security & Privacy/Privacy/Automation tab. Great.

But now when I run the app I always get the Not Authorized to send Apple events to Finder. I never get prompted to allow access.

How can I reset set it so asks for permissions?


How can I reset set it so asks for permissions?

Well, that’s annoying. And IMO it’s also bugworthy; tccutil reset should get you back to your starting point. Please file a bug about that and post your bug number, just for the record.

Some suggestions:
  • If you delete all copies of your app from your Mac, does that clear this state?

  • If, for debugging purposes only, you create a new user and run your app there, does that generate the prompt?

ps I do all my TCC testing in a VM to avoid problems like this. Every time I run my test I revert the VM to a snapshot taken before it’s seen my app.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

In Big Sur 11.5.1 tccutil reset AppleEvents worked for me.

Not authorized to send apple events to Finder
 
 
Q