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