I am looking for a way though to send all received messages in iChat to the shell - the opposite of this script. If anyone has an example that would help me or point me in the right direction that would be great!
Ultimately I want to route all messages received to another program run from the shell that I would do something like:
echo $MESSAGE | pdsend 1571
Thanks for any help supplied!
mark
Model: G5
Browser: Firefox 3.0.10
Operating System: Mac OS X (10.5)
I havent tested it, but this event handler could do it
using terms from application "iChat"
on message received themessage from theBuddy for theChat
do shell script "/bin/echo " & quoted form of themessage
end message received
end using terms from
save the script in ~/Library/Scripts/iChat/ and connect the appropriated buddies via the Message Received alert to the script