

It seems to be limited to the Finder and other Apple apps, because this works from the panel: So this simple call to the finder works running from Script Editor and always has from the ID Scripts panel as well, but now the panel version is breaking Hi starting to run into similar problems with existing AppleScripts that need to communicate with the finder even when the do script command is not used. I believe this is due to NSAppleEventsUsageDescription, which is now required by macOS to be able to communicate between apps using scripting. It's that InDesign 16.3 is not allowed to control other apps.ġ6.2 does correctly trigger the permission dialog, while 16.3 doesn’t. The issue is not with 'do script' per se, nor is it with calling Finder. InDesign is the one that runs the script, so the user must give permission to allow InDesign to communicate with other apps. This is the same when running a script with an event handler. The ‘do script’ command makes sure it’s InDesign thats running the script. Therefore the script will always return a permission denied error. That means the user cannot give explicit consent. Now in 16.3.2 this permission dialog is never triggered. If the user does not give consent you’ll get an error: permission is denied. If the user gives consent all is good and the app can control the other app.

Therefore macOS asks explicit user consent whenever an app runs a script that tells another app to do something. An app telling another app what to do is a security risk. Doesn’t matter it it’s calling Finder, Photos, Calendar, whatever. But Indesign controlling other apps, that might have some risks.Ī malicious app might get access to your files, photos etc. Of course Indesign is allowed to control itself, that could not do any harm. In your example InDesign triggers an InDesign dialog. The ‘do script’ command is just an example to trigger that.

Sorry if I wasn’t clear in my previous posts. If you need any further information to reproduce this issue, or information about the solution please let me know. app using a custom signing certificate (changing the ist will break the original signing).Īccording to this key is required when linking against the macOS 10.14 SDK. Plutil -insert NSAppleEventsUsageDescription -string "This script needs to control other applications to run." /Applications/Adobe\ InDesign\ 2021.app/istĪnd resigning the. I’ve successfully confirmed this by adding this key to the plist: Once this key is added the macOS permission dialog will show up correctly again. Looks like adding NSAppleEventsUsageDescription to the InDesign ist solves the issue.

To reset macOS Apple Event permissions run the following command in Terminal: But if it’s a first-time user, or if the Automation permission is reset, InDesign 16.3 will never trigger the dialog anymore. using InDesign 16.2), the Automation permission is persistent and works for 16.3 as well. If the user had previously allowed control (e.g. This results in all scripts failing due to no authorisation to communicate with external apps. The user is not asked to give permissions and the entry will never show up in Automation. Since InDesign 16.3 the macOS permission dialog doesn’t show up anymore. If the user did not allow control, the entry is unchecked and can be enabled at any moment by the user in System Preferences > Security & Privacy > Automation. If the Automation entry is checked communication is authorised and the script works fine. After confirming or dismissing this dialog a new entry in System Preferences > Security & Privacy > Automation will show up for Adobe InDesign 2021.app When running the script the first time macOS will ask the user to allow InDesign to control my app. I’ve been using do script to communicate with my app without issues. InDesign versions before 16.3 worked fine. After confirming, Finder shows an alertĪppleScript error: Not authorized to send Apple events to Finder. macOS asks to allow InDesign to control FinderĢ. Tccutil reset AppleEvents ĭo script "tell application \"Finder\" to display dialog \"Hello\""ġ. Reset the macOS Apple Event permissions for InDesign in Terminal: I’m the developer of a font manager and want InDesign to report which fonts are used in a document Previous versions of InDesign worked fine, after the user allowed InDesign to control the target app. Since 16.3 this doesn’t work anymore, because macOS prevents the script from running. I’m using the InDesign do script AppleScript command to instruct another application to do something. Not sure if this is the correct place to post this, but the uservoice forums seems kind of silent.
