Trigger AppleScript when receiving specific message
Posted: Tue Jan 26, 2010 12:19 pm
Hi
I'm building an App within Cocoa that should communicate with a computer over the internet.
What i want to do is, when my app sends an message via ICQ (or AIM or something else) to the remote computer which is running Adium, I want it to trigger an applescript.
The script should validate what the client sends.
I.e. if the message is "WEBCAMON" it should trigger a script A
when the message is "ALARMON" it should trigger a script B
Is there any good example on how this is done ?
Thanks
I'm building an App within Cocoa that should communicate with a computer over the internet.
What i want to do is, when my app sends an message via ICQ (or AIM or something else) to the remote computer which is running Adium, I want it to trigger an applescript.
The script should validate what the client sends.
I.e. if the message is "WEBCAMON" it should trigger a script A
when the message is "ALARMON" it should trigger a script B
Is there any good example on how this is done ?
Thanks