( NSBundle ) - PATH to MainBundle, Resources, MacOS & a specific resource type
( NSBundle ) - PATH to MainBundle, Resources, MacOS & a specific resource type
- Subject: ( NSBundle ) - PATH to MainBundle, Resources, MacOS & a specific resource type
- From: Paul G <email@hidden>
- Date: Mon, 15 Nov 2010 10:37:22 +1000
I found knowing all these paths to be very useful:
set myImagePath to current application's NSBundle's mainBundle()'s pathForResource_ofType_("IMAGENAME", "png")
log myImagePath
set myPath to current application's NSBundle's mainBundle()'s bundlePath()
log myPath
set myResourcePath to current application's NSBundle's mainBundle()'s resourcePath()
log myResourcePath
set myMacOSPath to current application's NSBundle's mainBundle()'s executablePath()
log myMacOSPath
--
--
Regards,
Paul G
Professional Services Technician
Apple Certified Desktop Technician
Apple Certified Portable Technician
Apple Certified Macintosh Technician
Apple Certified Help Desk Specialist
Apple Certified Technical Co-Ordinator
Apple Product Professional (2008)
Paul Grice | Macintosh Specialist / Design & Development Officer
Operational Development | Information Management Services
Corporate and Professional Services
Department of Education & Training
Floor 11 | Education House | 30 Mary Street | Brisbane Qld 4000
T 3405 3814 | M 0402 643 758 | E
email@hidden
http://deta.qld.gov.au/Our Vision | a clever, skilled and creative Queensland
Please consider the environment before printing this email
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden