Re: Beast way to test for OS version
Re: Beast way to test for OS version
- Subject: Re: Beast way to test for OS version
- From: Laine Lee <email@hidden>
- Date: Tue, 03 Jan 2006 13:07:44 -0600
- Thread-topic: Beast way to test for OS version
On 12/19/05 6:25 PM, "Brett Conlon" <email@hidden> wrote:
>
> Hiya,
>
> What is the best way for a script to test for the version of OSX a user is
> running?
>
> I'm setting up UI scripting for printing and there are some minor changes from
> 10.3.9 to 10.4 and I'd like to include an OSXTest handler then IF statements
> to act accordingly?
>
> Merry Christmas,
>
> Cojcolds
>
I don't remember where I picked this one up, but it's my favorite, beastly
or not.
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
display dialog "" & OS_version & ""
--
Laine Lee
_______________________________________________
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