I'm trying to write a simple email app to handle various AppleEvents and send those messages using another protocol. As far as I know this is accomplished by 3rd party mail apps on OSX with MailSharingSupported, MailLinkSupported, MailPageSupported, and adding a mailto URL scheme type. There is a 5th in Mail.app, MailURLShareSupported, but there doesn't seem to be any documentation.The mailto scheme is straightforward, and seems to be the most common method; the MailLink and MailPage events are covered by Technical Q&A QA1722. However, I can't seem to get MailSharing to work at all because of sandboxing. Even if I move the codesigned app to /Applications and launch it there, I still get errAEPrivilegeError/-10004 for event mail/shim in Console. No entitlements I tried to add (com.apple.security.temporary-exception.apple-events, com.apple.security.scripting-targets, etc) seemed to work, probably because these grant permissions to my app, not the Mail service trying to contact it.--editI f