• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
( NSBundle ) - PATH to MainBundle, Resources, MacOS & a specific resource type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

( 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

  • Prev by Date: Error with Posix command
  • Next by Date: ( NSAlert ) - Creating a simple Display Alert in ASOC
  • Previous by thread: Error with Posix command
  • Next by thread: ( NSAlert ) - Creating a simple Display Alert in ASOC
  • Index(es):
    • Date
    • Thread