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
set appPass to "PASSWORD" as text | |
tell application "System Events" | |
delay 0.5 | |
repeat until exists process "SecurityAgent" | |
delay 0.5 | |
end repeat | |
tell process "SecurityAgent" | |
# writes variable in default selected inputfield(in my case its the password field) | |
keystroke appPass |