• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Two quick questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: last opened
  • Next by Date: Re: Two quick questions
  • Previous by thread: Re: Two quick questions
  • Next by thread: Scripting Sidebar Adding
  • Index(es):
    • Date
    • Thread