automating-password.txt 482 B

123456789101112
  1. -- Taken from a comment by Mr. X on http://selfsuperinit.com/2014/01/20/exporting-icloud-keychain-passwords-as-a-plain-text-file/
  2. set keychainPassword to "keychain password"
  3. tell application "System Events"
  4. repeat while exists (processes where name is "SecurityAgent")
  5. tell process "SecurityAgent"
  6. set value of text field 1 of window 1 to keychainPassword
  7. click button "OK" of window 1
  8. end tell
  9. delay 0.2
  10. end repeat
  11. end tell