• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Scripting password entry in Remote Desktop Connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Accessing a 'Scripting Addition's Features
  • Next by Date: Re: Accessing a 'Scripting Addition's Features
  • Previous by thread: Re: Need help with a date/excel applescript please.
  • Next by thread: Re: Image size & resolution in QuarkXPress
  • Index(es):
    • Date
    • Thread