Skip to content

Instantly share code, notes, and snippets.

@k9ordon
Created May 15, 2014 10:46
Show Gist options
  • Save k9ordon/8131f4aa19bbe06f6f23 to your computer and use it in GitHub Desktop.
Save k9ordon/8131f4aa19bbe06f6f23 to your computer and use it in GitHub Desktop.
tell application "System Events"
repeat while exists (processes where name is "SecurityAgent")
tell process "SecurityAgent"
click button "Allow" of group 1 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