Find Mac OSX version installed using AppleScript -


Which version of OSX can I install on my Mac using Apple Script? I want to install an app from the program and I am trying to run various PKG files based on the version.

Thanks

I'm not on Mac, so a better way to do this Maybe, but the first approach that comes to mind is simply executing a shell command for the query of the OS version.

Based on these references, you probably want to do something like this:

set script to "sw_vers -productVersion" set os_version

Comments