Re: Reading Bundle versions string, short
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