A very simple AppleScript to help those who have to juggle between Android and iPhone...
- Forwards incoming and outgoing iMessage texts to any account of choice
- OS X 10.8: Register the script with "Message Received" event - refer to https://46b.it/2012/hacking-with-imessage
- OS X 10.9: Haven't tested yet, but it looks like they don't let you specify a script for each event - they make you specify a script folder
- Supports two-way iMessage forwarding, tested on OS X 10.8.
- Only works if Messages app is both (1) running and (2) out of focus.
- This script relies on "Message Received" event to fire. It seems that this event may not fire (and hence forwarding won't work) if:
- (1) Messages app currently has focus, and
- (2) you receive messages on currently active chat.
- Perhaps the fix is to listen for "Message Received in Active Chat" event too?
- Only supports one-to-one text iMessages. Group messsages, pictures, movies don't work.
- Active discussion on iMessage attachments at https://discussions.apple.com/thread/5214769
- Presumably, not all iOS emoji will work either.
- I personally use a secondary Google Talk account for forwarding.
- Google Hangout Android app seems to support iPhone emoji, which plays nicely as well.