All Forces

Design, Music & Mac Geekery

Back to My Mac through iChat

77 Comments
by Melvin Rivera
Updated: Oct 8th, 2009

Remote Home Mac through iChat

One of the new features of Mac OS 10.5, a.k.a. Leopard, is .Mac’s Back to My Mac, a way to connect to your computer at home remotely. Back to My Mac allows a user log into another Mac remotely via internet. This is a great feature but it is only available if you are a .Mac subscriber. However, the new iChat supports Screen Sharing, so the only thing to figure out is how to auto-accept a Screen Share invitation and how to do it securely. This quick tutorial will show you how set up iChat to do just that.

Requirements:

This set up requires that both computers run Leopard. If you don’t have it yet, here’s the Amazon link to buy it. It is well worth the price. You also need two separate iChat supported IM accounts, one for each computer. This could be AIM, .Mac or Jabber accounts.


Step 1: Limit Users

It is very important this step is not skipped. Not limiting the users will open up to anyone taking over your computer.

iChat - Limit Account

From your Mac at home, launch iChat and from the top menu select iChat > Preferences and from the Accounts tab select your account from the Accounts list on the left panel.

iChat - Limit User

From the Security tab, select Allow Specific People and add the username of the ichat account you would like to allow to auto-connect.

Step 2: Set Up Auto Accept Screen Sharing

iChat Alerts

From the Alerts tab in the ‘iChat > Preferences’, select Audio Invitation from the Event pull down menu. Then check-mark Run AppleScript and select Auto Accept.applescript from the pulldown menu. You can close the Preferences window now.

Auto Accept File Location

Now, we’ll need to edit the Auto Accept script we selected in the previous step. Click on the desktop to go to the Finder and from a new Finder window, navigate to ‘Your Hard Disk/Library/Scripts/iChat/’. This is the folder that contains the iChat AppleScripts provided by Apple in Leopard. Double click the file Auto Accept.applescript to open in AppleScript Utility.

Editing Auto Accept Script

A Screen Sharing invitation is sent to iChat as an Audio chat with a Screen Sharing flag. We will need to locate the audio invitation section and comment out the screen sharing if statement by enclosing the lines with (* and *). See example bellow. Additions are marked in red.


on received audio invitation theText from theBuddy for theChat
   (* if (screen sharing of theChat is none) then *)
    accept theChat
  (* end if *)
end received audio invitation

Save the document and quit AppleScript Utility.

Step 3: Set Home Computer To Stay Awake

Energy Settings

Next, we need to set the home computer to stay stay awake, otherwise it will automatically go to sleep when not in use. From the top menu bar, select ‘Apple > System Preferences’ and click on the Energy Saver Preference Pane. From the Sleep tab, set the Computer sleep mode to never and check-mark the Put the hard disk to sleep option then quit System Preferences.

Step 4: Connect Remotely

iChat - Buddy List

Now we’re going to connect to our home Mac. From the other computer, add the username to the buddy list, select it and click the ‘Start Screen Sharing’ button on the bottom right of the buddy list window.

iChat - Ask to Share Screen

From the ‘Start Screen Sharing’ pull down menu, select ‘Ask to Share Username’s Screen…’ to begin the process.

IChat - Screen Sharing Connecting

iChat will ask permission on the Home account, but it will be automatically approved by our script there.

iChat - Screen Sharing Starting

IChat - Screen Sharing Connected

iChat will do it’s magic and your screen will shrink down to the corner as the remote Mac at home will go full screen.

Conclusion

I thought ‘Back to My Mac’ was going to be the .Mac feature that will make me renew my .Mac subscription, but the new iChat has proven more capable than the demo Steve made in his keynote.

P.S. The best way to transfer files is to actually use iChat to send the files. Screen Sharing goes full screen making it impossible to drag and drop. However, If you have a double monitor set up, it is possible to transfer files back and forth by using the second screen.

77 Comments

  • This post has enlightened me to wonder if there is a good way for me to share my iTunes at home with my iTunes at work (because it is too big for an iPod and most portable drives don’t allow for syncing with ratings, playlists, etc). If anyone has found a good working solution, let me know.

  • Antero Päärni says:
  • saji says:

    Great idea — way to hook everything together. Note that you can login to more than one AIM account now with iChat, so you can create a custom AIM account just for this purpose.

  • saji says:

    Or you could hardcode the AIM user you want to accept from in your script.

  • Ryan says:

    This is a great solution, I knew there’d be something useful I’d get out of the “Run AppleScript” feature in iChat. I was going to sign up for .mac for this feature alone.

    And yes, Jessica, try Simplify Media. I’ve been using it for the past few days and it is the perfect solution for sharing one iTunes library.

  • Hey, thanks a lot for this. Very cool, can’t wait to access my computer at home from work, and vice versa.

    Thank you again for sharing this.

  • Dont waste your money on .mac for back to my mac feature, I have never been able to get it to work and apple has been no help at all. This solution is just amazing!!! You have to leave your computer on for back to my to work anyway!

    One question now, I will use my laptop with my G5 at home that has 2 screens, how can I get it to only show one on my laptop?

  • Cool I am going to try the simplify media. Thanks much, so far looks like a great solution!

  • vinny says:

    You could easily modify the auto-accept applescript to only look for your iChat ID and accept the screenshare. That way you wouldn’t have to change your iChat preferences and it would only work for you.

  • Joey W. says:

    GENIUS. Thank you for the easy-to-read tip! =)

Leave a Reply


Contact Me