Re: What System?
Re: What System?
- Subject: Re: What System?
- From: Luther Fuller <email@hidden>
- Date: Tue, 23 Aug 2011 11:03:40 -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 was looking into that recently, but couldn't find the script. Perhaps didn't save it. A quick check of version commands gives me ...
system attribute "sysv" --> returns a hex value system version of (system info) --> "." delimited system version tell application "Finder" to product version --> "", should be system version tell application "Finder" to version --> "." delimited version of Finder
Currently, I'm still using this ...
set AppleScript's text item delimiters to {"."} (text items of (system version of (system info)) & {"0", "0", "0"}) 1000000 * (item 1 of the result) + 1000 * (item 2 of the result) + (item 3 of the result) if (the result < 10007000) then error "This version requires Lion." end if
|
_______________________________________________
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: | |
| >What System? (From: Robert Poland <email@hidden>) |