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 ?

Not authorized to send Apple events to Microsoft Excel
 
 
Q