Re: Two quick questions
Re: Two quick questions
- Subject: Re: Two quick questions
- From: David Marshall <email@hidden>
- Date: Fri, 23 Mar 2007 20:16:42 -0400
Two other ways to get the OS version:
- - - - -
do shell script "sw_vers -productVersion"
- - - - -
tell application "Finder" to set theDisk to name of startup disk
tell application "System Events"
set theFile to theDisk &
":System:Library:CoreServices:SystemVersion.plist"
set theVersion to value of property list item "ProductVersion" of
property list file theFile
end tell
- - - - -
These obviously only go back so far (according to man sw_vers, that
command was introduced as part of OS X in 2003).
- - - - -
Dave
_______________________________________________
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