Fwd: how to test bundle versions string?
Fwd: how to test bundle versions string?
- Subject: Fwd: how to test bundle versions string?
- From: Ron Reuter <email@hidden>
- Date: Sun, 16 Mar 2014 12:13:10 -0500
I think you'll need something more like this:
(current application's NSBundle's mainBundle()'s objectForInfoDictionaryKey:"CFBundleShortVersionString") as text
This works for me, on Mavericks, when I tested it as a method in a Script library. Your mileage may vary.
• Ron
> On 16 Mar 2014, at 7:43 AM, phil03 <email@hidden> wrote:
>
>> So I discovered the constant "CFBundleShortVersionString" but my attempts to use it have been thwarted.
>>
>> This doesn't work, for example:
>>
>> set myVersionNum to current application's CFBundleShortVersionString
>>
>> I tried coercing to string and text to no avail.
>>
>>
>>
>> On 16/03/2014 19:20, phil03 wrote:
>>> I'm trying to implement a "check for software updates" function in my ASObjC app.
>>>
>>> I'm more or less there, except I'm not quite sure how to query the current version number in my info.plist from within my application's script.
>>>
>>> Suppose I have the newest version number in an html file which I call using curl. I display a dialog prompting the user to update if the version number curl returns is higher than the version number of the calling script.
>>>
>>> How do I get the bundles current version number into a property in the script to test against what's returned by curl?
>>>
>>>
>>
>> _______________________________________________
>> 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
>
_______________________________________________
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