View Single Post
  #1 (permalink)  
Old 08-31-2009, 11:11 PM
pringlet's Avatar
pringlet
PPCGeeks Regular
Offline
Location: WYO
 
Join Date: Jan 2007
Posts: 194
Reputation: 340
pringlet is becoming a PPCGeeks regularpringlet is becoming a PPCGeeks regularpringlet is becoming a PPCGeeks regularpringlet is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to pringlet
Forward your google talk IM To your phone via SMS using iChat & applescript

Problem: I'd like to receive Google Talk messages to my Windows Mobile phone without having to run any IM software such as fring or Mundu or whatever. As far as I know all WM Instant Messaging clients require your phone to be 'On' (as in non-sleeping) and connected to the data network. This means that my phone cannot enter the low-power standby mode. If it does, my presence on the IM network will be dropped. The other option is leaving my phone on all of the time but that means my battery is toast by about 9:30am on a weekday.

Goal: To forward Instant Messages from Google Talk, Jabber and AIM accounts to my cell phone as a SMS text message via AIM's text messaging service. Eventually I'd like to be able to respond via text message too.

A solution: AIM has built in mobile forwarding of IM’s to SMS. I wrote a small applescript to forward messages on other protocols and their sender out over the AIM service. This feature coupled with an always on Mac, some setup steps, and the applescript below will get you started with a rudimentary way to push IM’s to your phone as text messages.

Steps:
1. Configure iChat to use an AIM account and make this your first account in the accounts list

2. Add your Google Talk and Jabber accounts
3. Edit the following applescript and replace the #’s in +1########## with your 10 digit phone number. It has to have the +1 out front
Quote:
using terms from application "iChat"
on received text invitation theText from theBuddy for theChat
accept theChat
set theBuddysHandle to handle of theBuddy
set theInvitationMessage to theText
set chatID to id of theChat
tell application "iChat"
close front window
end tell
send "IM from " & theBuddysHandle & " " & theInvitationMessage to buddy "+1##########" of service 1
end received text invitation
end using terms from
4. Save this in \Library\Scripts\iChat
5. In iChat -> Preferences -> Alerts set an event and tell it to run the apple script you just created.


Result: Now when you receive a new text message invite, the senders name and the message will be forwarded to you as text message(s).
Currently the only way to reply is to start up an IM program such as Mundu, fring, IM +, etc. and join the chat that way. With a bit of work this short script can probably be enhanced a little bit to route messages back out. A couple other features would be ‘quite hours’, IE if someone messages me at 4am my machine wouldn’t forward the message, also to check to see if there are any IM sessions active and if so, then don’t forward the message.
At any rate, this small script gets the job done as far as letting me know someone’s looking for me on IM without killing my Touch Pro battery.

If anyone has found better solutions to forwarding IM’s to SMS please let me know.

pt
Attached Images
File Type: png 1.png (3.1 KB, 183 views) Click for barcode!
File Type: jpg 2.jpg (9.5 KB, 178 views) Click for barcode!
__________________
Find my youtube videos here http://www.youtube.com/user/wrxman260

Last edited by pringlet; 08-31-2009 at 11:45 PM.
Reply With Quote
This post has been thanked 3 times.