I am trying to run the Microsoft AutoUpdate software, but I cant seem to get past this last final part.
tell application "Microsoft AutoUpdate"
activate
end tell
tell application "System Events"
tell process "AutoUpdate"
tell window "Microsoft AutoUpdate"
click button "Check for Updates"
end tell
end tell
end tell
delay 2
tell application "System Events"
tell process "AutoUpdate"
tell window "Microsoft AutoUpdate"
tell sheet "Updates Found"
click button "Install"
end tell
end tell
end tell
end tell
delay 1
set myusername to "[i]username[/i]"
set mypassword to "[i]password[/i]"
tell application "Finder"
frontmost
end tell
tell application "System Events"
tell process "SecurityAgent"
keystroke myusername
keystroke tab
keystroke mypassword
delay 5
end tell
end tell
For some reason it doesnt take all of the password for the variable mypassword. At first I thought it might be some of the strange characters in the password, but even that shouldnt have been a problem. So I exchanged the variables, and it wrote out the password in Name field. So it’s not the variable, its something strange about the Password field in Security Agent that seems to only want to take part of the password.
Also I cant seem to get the click button “Ok” or keystroke return, to get me past the SecurityAgend dialog box.
Any help would be greatly appreciated, thanks
Model: iMac, non aluminum
Browser: Safari 522.12.1
Operating System: Mac OS X (10.4)