code_junkie

Find Mac OSX version installed using AppleScript

Nov 14th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. set os_version to do shell script "sw_vers -productVersion"
  2.  
  3. tell application "Finder"
  4. set os_version to version
  5. end tell
  6.  
  7. display dialog os_version
  8.  
  9. set osver to system version of (system info)
  10.  
  11. tell application "Terminal"
  12. activate
  13.  
  14. set theVersion to do script with command "sw_vers -productVersion"
  15. end tell
Add Comment
Please, Sign In to add comment