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

Re: OS version?


  • Subject: Re: OS version?
  • From: Emmanuel <email@hidden>
  • Date: Wed, 14 May 2003 20:21:13 +0200

At 2:03 PM -0400 14/05/03, Deivy Petrescu wrote:
>On Wednesday, May 14, 2003, at 12:58 US/Eastern, Emmanuel wrote:
>
>>How do I get the version (10.2.6) of my OS?
>>
>>Finder's version returns "10.2.1", and Finder's product version returns "".
>>
>>TIA,
>>Emmanuel
>
>Emmanuel,
>I think you mean this:
>
>get system attribute "sysv"

Thanks Deivy. I should have known that.

My contribution now:

----------------------------------
set x to get system attribute "sysv"
set y to {}
repeat 4 times
set {beginning of y, x} to {x mod 16, x div 16}
end repeat
set text item delimiters to ""
"" & y
----------------------------------
-- "1026"

With Michael's suggestion, that makes two solutions. Isn't there another one that would start with:

-------------------
do shell script "defaults ??? \"ProductVersion\""
-------------------

?

Emmanuel

>This returns the system version interpreted in hexadecimal in decimal.
>The precedence is hexadecimal, whereas in school we all learn decimal :)

LOL
_______________________________________________
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: OS version?
      • From: Deivy Petrescu <email@hidden>
References: 
 >Re: OS version? (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Relaunch Finder X
  • Next by Date: Re: AS-Studio breaks list limits?
  • Previous by thread: Re: OS version?
  • Next by thread: Re: OS version?
  • Index(es):
    • Date
    • Thread