Skip to content

Instantly share code, notes, and snippets.

@rmcvey
Created May 9, 2018 07:18
Show Gist options
  • Save rmcvey/f56548e9a74d5d5837c6f7a648af9080 to your computer and use it in GitHub Desktop.
Save rmcvey/f56548e9a74d5d5837c6f7a648af9080 to your computer and use it in GitHub Desktop.
Get screenlock status on High Sierra 10.13.4
osascript -e 'tell application "System Events" to tell security preferences to get require password to wake'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment