appscript icon indicating copy to clipboard operation
appscript copied to clipboard

Add apple events entitlement

Open jhulance opened this issue 1 year ago • 1 comments

In the current version of MacOS (14.3), ASTranslate does not appear to prompt the user to allow for sending Apple Events -- I think the entitlement com.apple.security.automation.apple-events is needed for this.

Also, the richer help provided by ASDictionary seems to suffer from the thing, failing with a similar error number without ever prompting the user for permission:

Help (-s)

Reference: app('/Applications/Numbers.app').documents[0]

------------------------------------------------------------------------------
Current state of referenced object(s)
CommandError: Command failed:
                OSERROR: -1743
                MESSAGE: The user has declined permission.
                COMMAND: app('/Applications/Numbers.app').documents[0].get()

I have very naively added this to the corresponding plists, but this is my first time looking at MacOS code and I was not able to compile a working version of ASTranslate, even from the original code.

jhulance avatar Jan 28 '24 14:01 jhulance

Is this working for you? I'm fighting with this error when implementing an MCP (model context protocol) server. Thank you.

robertZaufall avatar Mar 21 '25 16:03 robertZaufall