• 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: System version?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System version?


  • Subject: Re: System version?
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 16 Feb 2004 10:08:57 -0800

On 2/16/04 9:11 AM, "Gnarlodious" <email@hidden> wrote:

> I can say:
>
> if (system attribute "sysv") is less than 4135 then
> display dialog "The script requires Panther"
> end if
>
> 1) Is there a better way to determine version?

What could possibly be better? Except you've got the number wrong. OS 10.3
has a (system attribute "sysv") of 4144, not 4135.

> 2) Where can I find out exactly which OS is what version? My OS is 10.3.2
> and returns 4135 .

No, It should be returning 4146. 4035 indicates OS 10.2.7.

Each digit of the OS version is interpreted as if in hex (base 16), with the
result totaled and expressed as decimal:

10.2.7
= (1 * (16 ^ 3)) + (0 * (16 ^ 2)) + (2 * (16 ^ 1)) + (7 * (16 ^ 0))
= (1 * 4096) + 0 + (2 * 16) + (7 * 1)
= 4096 + 0 + 32 + 7
= 4135


10.3.2
= (1 * (16 ^ 3)) + (0 * (16 ^ 2)) + (3 * (16 ^ 1)) + (2 * (16 ^ 0))
= (1 * 4096) + 0 + (3 * 16) + (2 * 1)
= 4096 + 0 + 48 + 2
= 4146

So you must be in Jaguar 10.2.7 (which is rather hard to find! - do you have
an non-upgraded G5 from September?) or you've remembered the result
incorrectly.

system attribute "sysv" (or ' tell application "Finder" to get computer
"sysv" ' pre-OS X, which will also recompile and work in OS X) is as precise
as you could wish. What's supposed to be wrong with it?


--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: System version?
      • From: Gnarlodious <email@hidden>
References: 
 >System version? (From: Gnarlodious <email@hidden>)

  • Prev by Date: Re: System version?
  • Next by Date: Re: System version?
  • Previous by thread: Re: System version?
  • Next by thread: Re: System version?
  • Index(es):
    • Date
    • Thread