我如何知道应用程序使用的Apple事件访问组? [英] How can I know the Apple Event Access Groups used by an application?

查看:214
本文介绍了我如何知道应用程序使用的Apple事件访问组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

苹果的Sandobox应该使用苹果事件访问组,它允许应用程序彼此通信,如WWDC视频会话206安全自动化技术在OS X

Apples' Sandobox is supposed to use Apple Event Access Groups, which allow applications to communicate with each other, as described in the WWDC video "Session 206 Secure Automation Techniques In OS X"

但是,没有提到的(我可以找到在Xcode 5.x文档中没有提到它)是如何,我可以找出哪些Apple事件访问组是为特定的应用程序定义的。

However, what is not mentioned (and I could find no reference to it in Xcode 5.x documentation) is how can I find out which Apple Event Access Groups are defined for a specific application.

例如,如果我想让我的应用程序与Pages(或Photoshop或Firefox等)通信,如何查找有关其Apple事件访问组的文档?

For example, if I want my App to communicate with Pages (or Photoshop, or Firefox, etc.), how can I find documentation about its Apple Event Access Groups? Where are they defined, and what tool can I use to find them?

推荐答案

沙盒应用程序中的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"/>

这篇关于我如何知道应用程序使用的Apple事件访问组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆