Unable to allow apps to control other apps using apple events on macOS Ventura.

I have an application used to control other applications using Apple events for Mac.

Initially, when the app tried to control another app, the macOS system would show a dialog box requesting permission. This dialog asked for access, and once granted, it was reflected in the 'automation' section of the security and privacy settings.

After that, app could control the other app without asking for permission every time.

Everything was working fine until the notarization process became mandatory for all Mac applications.

After starting the notarization process, the permission dialog box stopped appearing entirely when the app tried to control other applications.

I researched and found that enabling 'Hardened Runtime' can block some functionality, including Apple events.


So, To address this issue, I added the 'com.apple.security.automation.apple-events' entitlement to the app during the code signing process.I also included 'NSAppleEventsUsageDescription' in the app's info.plist. 

I use this code for codesign —> 

codesign --deep --verify --verbose --force --timestamp --options runtime --sign "ABC Pty Ltd" "$1/Contents/Resources/NProcess.app/"

codesign --deep --verify --verbose --force --timestamp --options runtime --entitlements "$PROJECT_ROOT/ABCApp.entitlements" --sign "ABC Pty Ltd" "$1"


By using all the above procedure I was able to use apps to control other apps on Mac but when I used it on Ventura macOS I am facing the same issue.

To address this issue in ventura i also added NSUpdateSecurityPolicy in plist but getting the same issue.


Is there anything I am missing to get the dialog box that is essential to access other app.

Thanks in advance for the help.

Mac Studio (2022)

Posted on Oct 5, 2023 11:30 PM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Unable to allow apps to control other apps using apple events on macOS Ventura.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.