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).