Unable to control third party applications with AppleScript
This is essentially the same issue as https://community.adobe.com/t5/indesign-discussions/indesign-16-3-2-not-authorised-to-send-apple-events-to-other-apps/td-p/12312871 except for Illustrator.
Illustrator is missing the NSAppleEventsUsageDescription key from its info.plist file. This prevents the system from asking permission from the user to send apple events from Illustrator.
Mac OS 11.5.2
tccutil reset AppleEvents com.adobe.illustrator
save the following AppleScript and place in the scripts menu for illustrator.
tell application "Finder"
display dialog "test"
dialog in finder
AppleScript error: Not authorized to send Apple events to Finder. (-1743)
I am happy to share that we have fixed this bug in our latest release – 26.3.1 which is available worldwide now.
Going forward, our goal is to fix as many top User-Voice bugs as possible and as frequently as possible. Given the nature of the fixes, some of the bugs will take a longer time to fix, but we are on it.
You can update to the latest release using Creative Cloud desktop App: https://helpx.adobe.com/in/creative-cloud/help/creative-cloud-updates.html
Thank you for all the feedback. Keep it coming!
@Mark Lively thanks so much for the fix you posted. It works a treat.
We are now back to working as we were before any Illustrator updates. Much appreciated.
Mark Lively commented
Add the following script to the scripts menu and it will get the permissions for illustrator
do shell script "tccutil reset AppleEvents com.adobe.illustrator"
do shell script "osascript -e 'tell application \"Finder\"' -e 'activate' -e 'display dialog \"test\"' -e 'end tell'"
do shell script "osascript -e 'tell application \"Mail\"' -e 'activate' -e 'display dialog \"test\"' -e 'end tell'"
Add in any other applications you typically use.
I do hope this gets implemented in the next update of Illustrator. I work in a team of Artworkers and we use scripts all the time to automate tasks. This not working has really put a spanner in the works.
The scripts just want access to the desktop so it can generate the folder structure and save the files.