Not authorized to send Apple events to Microsoft Excel

  1. I have created swift command line project and i have added logic to executing apple script using NSAppleScript. That will launch Microsoft Excel file
  2. I am launching this swift command line executable from java using process launch.

3)This is not prompting me. It is throwing exception "Not authorized to send Apple events to Microsoft Excel."

I have already tried out this option

  1. Added info.plist with NSAppleEventsUsageDescription
  2. Added entitlement with com.apple.security.automation.apple-events to true
  3. In packages i have selected this entitlement
  4. i have select the bundle identifier , team and signing certificate "Development" and automatically manage signing.

can you please suggest what could i missed ?

I am launching this swift command line executable from java using process launch.

Is this Java code an application? That is, something that the user launches by double clicking the Finder?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Not authorized to send Apple events to Microsoft Excel
 
 
Q