AppleScript Finder communication
InDesign version 16.3.2 with OSX 10.14.6 or later
Indesign script‘s with calls to the Finder or other Apple apps work running from Apple’s Script Editor, but break when running from InDesign’s Scripts panel. Get an Not Authorized to Send Apple Events to Finder error.
This breaks when running from the Scripts panel, but worked with InDesign 2020:
tell application id "com.adobe.InDesign"
tell application "Finder"
activate
display dialog "Hello"
end tell
end tell
Calls to other Adobe apps are ok, so this still works from the panel:
tell application id "com.adobe.InDesign"
tell application id "com.adobe.Photoshop"
activate
display dialog "Hello"
end tell
end tell