Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 20, 2021 19:53
Show Gist options
  • Select an option

  • Save macmule/2e6cd3851c6147f89dda4cfce48c18e6 to your computer and use it in GitHub Desktop.

Select an option

Save macmule/2e6cd3851c6147f89dda4cfce48c18e6 to your computer and use it in GitHub Desktop.
try
do shell script "security unlock-keychain -p ~/Library/Keychains/login.keychain"
set keychainState to "unlocked"
log " Keychain unlocked..."
on error
set keychainState to "locked"
end try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment