Page 1 of 1

AppleScript for chat event

Posted: Sun Aug 17, 2008 9:54 pm
by mikechambers
In the Events preferences, there is an option to run an AppleScript script when something happens.

I wold like to run an applescript event whenever a message in a group chat is received. Does anyone know how to then access the chat message in the applescrpt? Is there an AppleScript event for the chat?

i.e.

onchat()
--do stuff here
end onchat

i.e. what is the applescript event? how do I access the chat message?

Also, any pointers to the Adium AppleScript docs / tutorials? I have seen this:

http://trac.adiumx.com/wiki/AppleScript_Support_1.2

but it seems to be focused on external applications talking to Adium, and not on handling events.

Basically, I want Adium to send a Growl event whenever someone mentions my name in a group chat window.

Any help would be appreciated.

mike

Re: AppleScript for chat event

Posted: Mon Aug 18, 2008 9:20 pm
by mtimmsj
This isn't possible at this point in time. The ability to do this has been talked about several times and there was some mention in one of the trac's about someone working on it. I'm not sure of the status though.

Re: AppleScript for chat event

Posted: Mon Aug 18, 2008 9:48 pm
by mikechambers
ok. Thanks for the info.

The two use cases I have are to:

1. disable enter / leave notifications in group chat
2. send a growl alert when someone mentions my name (or some other term) in a group chat.

mike

Re: AppleScript for chat event

Posted: Tue Aug 19, 2008 7:37 am
by mikechambers
>send a growl alert when someone mentions my name (or some other term) in a group chat.

It looks like this is included in the latest beta.

mike