Skip to content

Instantly share code, notes, and snippets.

@alexkaessner
Created October 13, 2022 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexkaessner/b413b61184dd78309a11f824361516f4 to your computer and use it in GitHub Desktop.
Save alexkaessner/b413b61184dd78309a11f824361516f4 to your computer and use it in GitHub Desktop.
AppleScript to retrieve the macOS version and build number.
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