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)
@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.