Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否允许 Mac App Store 上的 Mac 应用程序读取(内置)应用程序的 .plist 文件,还是我需要将其完全沙箱化(脚本桥不提供该功能)?
如果您有正确的路径(例如 /Applications/Preview.app/Contents/Info.plist),您应该能够阅读应用程序的 plist。
不过,从 3 月开始,沙盒规则将阻止这种情况发生。没有明确的用户许可(Powerbox),你不能在你的容器之外读/写
不过,也许您尝试做的事情最好通过 NSWorkspace 完成。
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html