Re: What System?
Re: What System?
- Subject: Re: What System?
- From: Robert Poland <email@hidden>
- Date: Tue, 23 Aug 2011 11:33:10 -0600
Thanks All,
This is what my implementation ended up being.
set AppleScript's text item delimiters to {"."} (text items of (system version of (system info)) & {"0", "0", "0"}) set x to item 2 of result as integer if x < 7 then set lionSystem to false else set lionSystem to true end if set AppleScript's text item delimiters to originalDelimiters
On Aug 23, 2011, at 10:03 AM, Luther Fuller wrote: 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
Robert Poland - Fort Collins, CO
|
_______________________________________________
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