Created
October 13, 2022 11:30
-
-
Save alexkaessner/b413b61184dd78309a11f824361516f4 to your computer and use it in GitHub Desktop.
AppleScript to retrieve the macOS version and build number.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set os_version to do shell script "sw_vers -productVersion" | |
set os_build to do shell script "sw_vers -buildVersion" | |
set macOSInfo to "macOS " & os_version & " (" & os_build & ")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment