Scripting password entry in Remote Desktop Connection
Scripting password entry in Remote Desktop Connection
- Subject: Scripting password entry in Remote Desktop Connection
- From: Scott Griffitts <email@hidden>
- Date: Sun, 02 Feb 2003 14:27:41 -0600
With the help of the beta System Events I have almost been able to
completely automate a VPN connection and a startup and connection of
Microsoft's Remote Desktop Connection (RDC). The sticking point I'm running
into is when RDC connects and prompts me with a password dialog. I would
like my script to be able to automatically enter the password. Currently I'm
using:
tell application "System Events"
tell process "Remote Desktop Connection"
keystroke "mypassword"
-- I have also tried:
-- keystroke "m"
-- keystroke "y", etc.
end tell
end tell
Outwardly, this seems to work because the correct number of asterisks appear
in the password field. However, submitting the dialog box prompts an
incorrect password error. Manually typing "mypassword" and submitting gets a
successful login.
Is this some sort of security precaution on the part of RDC (and perhaps all
password fields) or am I going about this the wrong way?
Thanks.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.