开发者

How do I get the Scripts folder in the application bundle?

I'm really new to AppleScript so this is a real basic question but I couldn't find the answer or an example in the AppleScript ref. guide.

I'm making a simple script that I'll bundle as an application file, in the AppleScript Editor I can see the app's Bundle Contents in which I have an icon, a description file and a开发者_如何学Go Scripts folder. How do I access that content from the script and how do I access the scripts inside the scripts folder?


If you save your script as a script bundle or as an application bundle you can use the path to resource command, e.g.:

path to resource "description.rtfd"

Also see Commands Reference.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜