AppleScript : Notification of new messages.

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
mac4ever
Harmless
Posts: 2
Joined: Wed Mar 15, 2006 2:30 pm

AppleScript : Notification of new messages.

Post by mac4ever »

Is there a way to launch an applescript procedure when a new message is sent to an account, in order to get the content of the message and select an option to launch ?

My goal is to launch apple scripts using addium as a distant script launcher.

I'd like to find code example of such functionnalities, but I can't find any.

Thanks a lot.

Cyril.
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

Post by yelly »

in the events pref-pane, you can make any event (including receiving messages) run an applescript.
mac4ever
Harmless
Posts: 2
Joined: Wed Mar 15, 2006 2:30 pm

Post by mac4ever »

My problem is that I'd like the applescript to know the message and the account it was sent by, and I don't think I can make it this way.


I remember having scripted Ircle before, and there is a method you can use in an applescript (loaded by Ircle), that is called every time a message was recieved, with global variables (last message, etc...).

What i'd like would be code examples from existing script using this functionnality (my last programming was 10 mounth ago...)
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post by evands »

Such functionality does not exist in Adium. If you're interested, we'd be happy to accept a clean patch implementing this capability. Colloquy (colloquy.info) has an applescript plugin system which could serve as an example for an implementation.
The duck still burns.
--
My company: Saltatory Software. Check it out :)
Post Reply