Re: can't get version
Re: can't get version
- Subject: Re: can't get version
- From: "francois.houle" <email@hidden>
- Date: Fri, 17 Jun 2005 16:31:30 -0400
This is the way Apple has suggested to do this, and it gives a nice result
like 1041 for Tiger 10.4.1
set the hexData to system attribute "sysv"
set hexString to {}
repeat 4 times
set hexString to ((hexData mod 16) as string) & hexString
set hexData to hexData div 16
end repeat
set the OS_version to the hexString as string
This is extra to see the result:
display dialog OS_version buttons
On 6/17/05 11:21 AM, "Robert Poland" <email@hidden> wrote:
>> On 6/17/05 8:09 AM, "Robert Poland" wrote:
>>
>>> Hi,
>>>
>>> I can't get the version with Tiger.
>>>
>>> tell application "Finder" to set x to long version
>>> tell application "Finder" to set x to short version
>>> tell application "Finder" to set x to system version
>>> set x to system version
>>>
>>> All produce errors.
>>>
>>> What I'm looking for is a way to tell if the System is Tiger.
>>>
>>> Any cure?
>>
>> tell application "Finder" to set x to version
>> --> returns Finder version NOT OS version; but still 10.3.x or 10.4.x
>>
>> HTH
>>
>> Jake
>
> Thanks to Jake Pietrykowski <email@hidden>, has
> <email@hidden> and Rob Jorgensen <email@hidden> for the
> work arounds.
>
> Has anyone reported the apparent bugs?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden