且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我如何知道应用程序使用的Apple事件访问组?

更新时间:2023-12-03 20:01:04

沙盒应用程序中的Apple事件通常由Apple脚本。有这里需要的权利的文档:

Apple Events from sandboxed apps is typically done with Apple Script. There is documentation for the entitlement needed here:

https://developer.apple.com/library/ios/Documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html# // apple_ref / doc / uid / TP40011195-CH4-SW25

要查找哪个应用提供了访问组,这是一个麻烦,许多可用。使用terminal和 sdef 找出。这将为您提供一个XML,您可以在控制台中阅读并查找access-group

To find which app provides access groups is a bit of a hassle and there aren't many available. Use terminal and sdef to find out. this will give you an XML which you can read and look for access-group

sdef /Applications/Mail.app > mail.sdef.xml
open mail.sdef.xml 

<access-group identifier="com.apple.mail.compose" access="rw"/>