I'd like to fill in the Keychain Dialog box with the Name: and Password fields (printer is windows print queue), but after the Print command, the Keychain dialog box opens up, but never responds to anything till I click OK or cancel.
tell application "TextEdit"
activate
make new document
print document 1 with properties {target printer:"2nd-floor"}
tell application "System Events"
set value of text field 1 of group 1 of window 1 to "CUA\name"
click button 2 of window 1 of application process "SecurityAgent"
end tell
end tell
Hope I missing something silly, thanks.