• 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: 10.4.9 versus 10.4.10
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.4.9 versus 10.4.10


  • Subject: Re: 10.4.9 versus 10.4.10
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 17 Mar 2008 15:48:02 +0100


Le 17 mars 2008 à 15:37, Philip Aker a écrit :

On 08-03-17, at 07:05, Nigel Garvey wrote:

Was "sysv" _meant_ to be superseded by the other attributes after 10.4.9, or is its incorrect last number a genuine mistake?

An unforeseen consequence of the large number of Tiger updates (i.e. Leopard delays) according to Chris Espinosa (Xcode technologies manager).


One side-effect of a minor update is that during the time between the end of applying the update and the start of the reboot process, if you have shutdown scripts which rely on the system version, a very tricky situation arises…



It seems that the code offered by Paul Berkowitz (slightly modified here)


try
set v to ((system attribute "sys1") as string) & "." & (system attribute "sys2") & "." & (system attribute "sys3")
--> 10.4.11
on error
set v0 to system attribute "sysv"
set {v1, v0} to {v0 div (16 ^ 3), v0 mod (16 ^ 3)}
set {v2, v0} to {v0 div (16 ^ 2), v0 mod (16 ^ 2)}
set {v3, v4} to {v0 div (16 ^ 1), v0 mod (16 ^ 1)}
set v to (v1 as string) & v2 & "." & v3 & "." & v4
--> 10.3.9
end try


respond to every case.

Yvan KOENIG _______________________________________________
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
References: 
 >Re: 10.4.9 versus 10.4.10 (From: "Nigel Garvey" <email@hidden>)
 >Re: 10.4.9 versus 10.4.10 (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: PlugIns or Plug-ins
  • Next by Date: Re: PlugIns or Plug-ins
  • Previous by thread: Re: 10.4.9 versus 10.4.10
  • Next by thread: Re: 10.4.9 versus 10.4.10
  • Index(es):
    • Date
    • Thread