开发者

Are Mac App Store apps allowed to read .plist files of other apps?

Is it allowed for Mac apps available on the Mac App Store to read .plist files of a (built in) app or do I need to sandbox it completely (Scripting bridge does not provide the functio开发者_如何学编程nality)?


You should be able to read the plist of an app, provided you have the correct path (e.g. /Applications/Preview.app/Contents/Info.plist).

Starting in March, though, the sandboxing rules will prevent that. You cannot read/write outside of your container without explicit user permission (Powerbox)

Maybe what you are trying to do is better done through NSWorkspace, though.

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜