extra-automation-v2.txt 289 B

123456789101112
  1. tell application "System Events"
  2. repeat while exists (processes where name is "SecurityAgent")
  3. try -- added
  4. tell process "SecurityAgent"
  5. click button "Allow" of window 1
  6. end tell
  7. on error -- added
  8. -- ignore it -- added
  9. end try -- added
  10. delay 0.2
  11. end repeat
  12. end tell