Skip to content

Instantly share code, notes, and snippets.

@Jayphen
Created May 25, 2015 23:53
Show Gist options
  • Save Jayphen/01ee65bd959c8258a798 to your computer and use it in GitHub Desktop.
Save Jayphen/01ee65bd959c8258a798 to your computer and use it in GitHub Desktop.
Spam always allow when Chrome loses access to keychain
tell application "System Events"
repeat while exists (processes where name is "SecurityAgent")
repeat until exists window 1 of process "SecurityAgent"
end repeat
tell process "SecurityAgent"
click button "Always Allow" of window 1
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment