Re: What System?
Re: What System?
- Subject: Re: What System?
- From: Nigel Garvey <email@hidden>
- Date: Thu, 25 Aug 2011 00:45:51 +0100
"koenig.yvan" wrote on Wed, 24 Aug 2011 23:55:13 +0200:
>I don't remember the sysv values returned for 10.4.10 and 10.4.11 but
>knowing them it would easy to get rid of these two odd cases.
>
>set maybe to system attribute "sysv"
>if maybe = system_10410_value then
>return "10.4.10"
>else if maybe = system_10411_value then
>return "10.4.11"
>else
>-- here the standard treatment
>end if
"sysv" stayed at 4169 (OS 10.4.9) for those two. New "sys1", "sys2", and
"sys3" attributes for identifying OS 10.4.10 were introduced in … OS
10.4.10! So:
set maybe to (system attribute "sysv")
if (maybe is 4169) then -- (OS 10.4.9/10/11)
try
"10.4." & (system attribute "sys3")
on error
"10.4.9"
end try
else
-- etc.
end if
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden