Re: OS version?
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.