January 2006
Beginner
592 pages
16h 55m
English
path to resource
bundle resource location
Locates a file in the Resources folder of a bundle. Intended primarily for script bundles and applet bundles (and AppleScript Studio applications), so they can see inside themselves; doesn't work in Script Editor, but works fine in Script Debugger. You can optionally designate any bundle to look in (such as an application), and a subfolder within the bundle.
display dialog ((path to resource "description.rtfd") as string)
-- feathers:Users:mattneub:Library:Scripts:myScriptBundle.scptd:Contents:
Resources:description.rtfd
set f to path to resource "app.icns" in bundle ¬
alias "feathers:Applications:Mail.app:"
display dialog "Time to check your mail!" with icon fRead now
Unlock full access