How can I find which version of OSX is installed on my Mac by using AppleScript? I want to install an app programatically and run different pkg files based on the version.
You can get version from the Finder app as well
tell application "Finder" set os_version to version end tell display dialog os_version
On my machine this displays "10.5.8".