I am trying to do a little hack with the Messages application on OSX Mountain Lion. I am using applescript, but everything I have tried has not been working out for me..
Here is what I tried first
using terms from application "Messages"
on message sent theObject
display "it worked!"
end message sent
end using terms from
But when I press run it just seems to just exit to program immediately. How do I make it stay in listener loop?