Created
September 22, 2016 15:22
-
-
Save evianzhow/1a809d3630eef193074838e79047b02b to your computer and use it in GitHub Desktop.
This file contains 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
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