Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two quick questions



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.