• 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
Re: Reading Bundle versions string, short
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading Bundle versions string, short


  • Subject: Re: Reading Bundle versions string, short
  • From: wayne melrose <email@hidden>
  • Date: Wed, 16 Nov 2011 12:56:11 +0100


On Nov 16, 2011, at 9:08 AM, wayne melrose wrote:

Hi all,

I have a need to read out my applications current version. I'm planning on building a 'version check' on start up of the application.

I've always struggled understanding how to read info from the apps info.plist file.

Could someone please point me in the right direction?


Thanks to those that responded, just incase someone else out there is wondering, this is what I ended up with, which gave me exactly what I needed to know. 

set my strVersionString to current application's NSBundle's mainBundle()'s objectForInfoDictionaryKey_("CFBundleShortVersionString")


Where of course one can replace the key with any value that is in the info for the app. 
 _______________________________________________
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

  • Follow-Ups:
    • Re: Reading Bundle versions string, short
      • From: Evan Schoffstall <email@hidden>
References: 
 >Reading Bundle versions string, short (From: wayne melrose <email@hidden>)

  • Prev by Date: Reading Bundle versions string, short
  • Next by Date: Re: Reading Bundle versions string, short
  • Previous by thread: Reading Bundle versions string, short
  • Next by thread: Re: Reading Bundle versions string, short
  • Index(es):
    • Date
    • Thread