Auto-accept iChat screen sharing sessions

Oct 29, '08 07:30:00AM

Contributed by: applesjgtl

I went to Europe for three weeks this summer, and wanted a way to be able to grab things from my iMac while I was away. I figured out how to alter the Auto-Accept script in iChat to enable remote screen sharing as well, so that I could start a remote session without confirmation.

Input the code below into Script Editor, and save it as Auto Accept modified.applescript in /Library » Scripts » iChat.

using terms from application "iChat"
    on received text invitation theText from theBuddy for theChat
      accept theChat
  end received text invitation
    on received audio invitation theText from theBuddy for theChat
      accept theChat
  end received audio invitation
    on received video invitation theText from theBuddy for theChat
      if (screen sharing of theChat is none) then
          accept theChat
      end if
  end received video invitation
    on received file transfer invitation theFileTransfer
      accept theFileTransfer
  end received file transfer invitation
 end using terms from
Then, in iChat's buddy list, control-click on the name of the person from whom you'd like to auto-accept screen sharing, and select Show Info from the pop-up menu. Click on the Alerts tab, and set the Event pop-up to Audio Invitation (screen sharing comes in as an audio invitation). Next, click the Run AppleScript check box, and use the pop-up menu to select the script you just saved. It's very important that you enable this on a per user basis, not through the Alert tab in iChat's preferences -- unless, that is, you want all your buddies to have full access to your computer without your confirmation.

The same can be done for Video Invitations, Text Invitations, and Incoming File Transfers, respectively, as they're all covered in the above script.

[robg adds: I tested this, and it works as described...]

Comments (11)


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