Add apple events entitlement
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.
Is this working for you? I'm fighting with this error when implementing an MCP (model context protocol) server. Thank you.