when I try to run a very simple JXA script in Script Editor, it throws an error -1743 the first time I call a DT method. The same happens with other apps like System Events.
I believe that this is related to a global privacy setting, i.e. Script Editor does not appear in the list of applications unter “Automation”.
Edit: The same happens with AppleScript, where the error handler helpfully tells me that “There’s no permission to send Apple Events to DEVONthink 3” (my translation).
Is anyone else seeing this?
Running the script with
osascript is ok.