Skip to content

Instantly share code, notes, and snippets.

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 evianzhow/1a809d3630eef193074838e79047b02b to your computer and use it in GitHub Desktop.
Save evianzhow/1a809d3630eef193074838e79047b02b to your computer and use it in GitHub Desktop.
tell application "System Events"
repeat while exists (processes where name is "SecurityAgent")
tell process "SecurityAgent"
set value of text field 1 of window 1 to "password"
click button "OK" of window 1
end tell
delay 0.2
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment