Re: What System?
Re: What System?
- Subject: Re: What System?
- From: Christopher Stone <email@hidden>
- Date: Tue, 23 Aug 2011 14:03:21 -0500
On Aug 23, 2011, at 10:40 AM, Robert Poland wrote: Could someone tell me what the latest Applescript code is to get the current operating system?
______________________________________________________________________
I see you've got something working, but I thought I'd throw some old code by Nigel into the mix.
-- Best Regards, Chris
-- Based on research by Richard Morton in the early days of "Code Exchange". Script by Nigel Garvey
-- The StandardAdditions's 'system attribute' used to be the Finder's 'computer' command. set sysv to (system attribute "sysv") mod 65536
-- For most practical purposes, scripts can compare this number -- with some critical value worked out in advance.
-- But for display: set hiDigit to sysv div 4096 if (hiDigit > 0) then set hiDigit to hiDigit as string else set hiDigit to "" end if return hiDigit & sysv mod 4096 div 256 & "." & sysv mod 256 div 16 & "." & sysv mod 16
|
_______________________________________________
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