• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What System?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What System?
      • From: Nigel Garvey <email@hidden>
  • Prev by Date: Re: What System?
  • Next by Date: Re: What System?
  • Previous by thread: Re: What System?
  • Next by thread: Re: What System?
  • Index(es):
    • Date
    • Thread