• 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 Screen sharing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Scripting Screen sharing.
      • From: deivy petrescu <email@hidden>
  • Prev by Date: Re: Strange Finder behaviour...
  • Next by Date: Re: a way to catch an error in do shell script CDM password
  • Previous by thread: Re. Strange Finder behaviour...
  • Next by thread: Re: Scripting Screen sharing.
  • Index(es):
    • Date
    • Thread