I’ve run in to many times where I’m browsing on my iPhone or iPad and want to browse a page at home, but there is no easy was to send the URL and have it just open in my desktop machine’s browser. Well today I figure it out and here’s how you do it.
You will need:
An AIM client on your iPhone/iPad – I’m currently using Beejive AIM, but that may change.
A “remote” AIM account and a home AIM account.
A Mac with iChat running – set it to auto launch at login.
My cool AppleScript to glue it all together.
1. Copy this script and save it in your iChat Script folder. Generally that’s in your home folder /Library/Scripts/iChat/.
using terms from application “iChat”
on message received theMessage for theChat
if theMessage contains “http” then
tell application “Google Chrome”
set URL of active tab of window 1 to theMessage
end message received
end using terms from
Couple of notes about the script.
We’re going to link this script to a specific buddy. If you linked it to everyone, then any URL in any chat would open in your browser. You don’t want that.
Because we don’t check the buddy in the script you can connect it to two or more buddies and any of them could open URLs.
Set Up AIM programs
You want to add both accounts to the buddy list of your phone AIM program and your desktop’s iChat.
Add your “remote” AIM account to your home AIM’s buddy list.
Add your home AIM to your phone’s buddy list.
In iChat select your remote account’s buddy and select Buddies->Show Info. A window will open, select the Alerts tab. Check the “Run an AppleScript script:” check box. From the popup select the script you just saved to your iChat folder.
If you save your script somewhere else and select it from this pop up using “Choose Script…”, iChat will copy it to the iChat folder, not use it where it is. So if you edit it where you saved it, iChat won’t see that change.
That’s it. Now send an text message with a URL in it.
Couple of caveats.
If you use Beejive AIM on the iPhone it has a UI weirdness where you have to start typing a message before you can paste. So type a space and then do your paste.
If you send something else besides the URL in the text message your browser will give AppleScript an error. A beginning space doesn’t count, so it’s OK.
For the past seven and a half months I’ve lived in Houston and been in Abilene when I needed to be. Mostly I’ve needed to be here because I’ve had paramedic school. Classes last semester, and clinicals and class this semester.
Clinicals finished last week. My last final and oral boards are on Friday. It’s time to really move.
There are things I need to be in Houston for. PALS February 28-29. National Registry Paramedic Skills testing April 21, with practice labs the week before. But mostly I’ll be in Abilene after Spring Break.
It’s a bitter sweet thing, like finishing my clincials was. I’m ready to be where my heart – aka the Mrs – is, but there are a lot of opportunities here in Houston that I’m leaving behind. And a lot of friends.
I won’t be working with the guys from In The Rabbit Hole, or hanging out with them at Tea on Thursday nights.
Won’t be able to volunteer and work with all my compatriots at Harris County Emergency Corp. And school will be over and I won’t have a reason to be with all my classmates and teachers at Lone Star North Harris.
When we decided to go to Abilene I said to myself, “Sometimes you need to turn your life upside down just to see how it changes.” Now it is really happening. It’s scary, exciting, weird, sad, and a whole bunch of other things I can’t put into words.