Has Catalina changed AppleScript rules?

I have a macOS app that uses compiled AppleScript to enage with Microsoft Outlook.

This app used to function correctly and is currently approved for sale in the Mac App Store.


Now in development on macOS 10.15.5 with Xcode 11.5 I am getting this:

NSAppleScriptErrorAppName = "Microsoft Outlook";
    NSAppleScriptErrorBriefMessage = "Not authorized to send Apple events to Microsoft Outlook.";
    NSAppleScriptErrorMessage = "Not authorized to send Apple events to Microsoft Outlook.";
    NSAppleScriptErrorNumber = "-1743";
    NSAppleScriptErrorRange = "NSRange: {51, 13}";


I have the entitlement set:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
  <string>com.microsoft.outlook</string>
</array>
</plist>

I have the explanation in the info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<string>WhoDo uses AppleEvents to create contacts in Outlook and optionally open Outlook after creating a contact.</string>
</plist>


I have checked (and set & reset) the Privacy preference in System Preferences.


Has something changed in Catalina that I am missing here!


This used to work just fine??


Thanks for any thoughts!

Steve

Accepted Reply

hardened runtime!


I had enabled and set the 'Contacts' option in Xcode but there is also an 'Apple Events' option.


Turning on 'AppleEvents' restored the earlier functionality.

Replies

Just a suggestion, hope this helps.

May need to set

System -> Preferences -> Security & Privacy -> Automation for …


https://stackoverflow.com/questions/54349237/scripterror-not-authorized-to-send-apple-events-to-terminal-when-running-code-o

hardened runtime!


I had enabled and set the 'Contacts' option in Xcode but there is also an 'Apple Events' option.


Turning on 'AppleEvents' restored the earlier functionality.

I had enabled and set the 'Contacts' option in Xcode but there is also an 'Apple Events' option.


Where in XCode ?