Scripting Screen sharing.
Scripting Screen sharing.
- Subject: Scripting Screen sharing.
- From: Robert Tillyard <email@hidden>
- Date: Thu, 19 Jun 2008 02:09:23 +0100
Hello,
I'm very new to Applescript and wonder if anyone has scripted the
Leopard Screen Sharing application could offer some help.
I can use the script at the bottom to get Screen Sharing to run and
then enter a host but if Screen Sharing is already connected to
another server it just sends the user and password to the current
Screen Sharing window.
I'd like to know how to say open a new connection to $HOME using $USER
and $PASS.
Started with...
tell application "Screen Sharing"
activate
tell application "System Events"
keystroke "N" using command down
keystroke "$HOST"
keystroke return
delay 1
keystroke "$PASS"
keystroke tab
keystroke "$USER"
keystroke return
end tell
end tell
I get slightly better with...
tell application "Screen Sharing"
activate
open location "vnc://$HOST"
tell application "System Events"
delay 1
keystroke "$PASS"
keystroke tab
keystroke "$USER"
keystroke return
end tell
end tell
But by default the dialog starts with my current user name and is
ready for the password.
Thanks, regards, Rob.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden