Conditonal Auto-responses.

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
wdavies
Harmless
Posts: 2
Joined: Sat Jan 10, 2009 12:24 am

Conditonal Auto-responses.

Post by wdavies »

I'd love to be able to have Adium respond to certain (regex'd?) phrases that come in to me from certain users. I can't find any examples of this sort of Applescripting. Can anyone point me at something I have missed, or point me at the right part of the Adium documentation that could get me started on coding up as solution. I'm assuming there's some kind of event handling, but I couldnt find any examples or docs.

Example:

<JOE, "*you there*" , "Sure, what do you want">
<SUE, "*you there*" , "What do you need?">

You get the picture? Basically like a mail filter, but it runs on incoming chat messages, and if it matches a pattern, reply with the response given.

Cheers,
Winton
User avatar
Robby
Cocoaforge Admin
Posts: 2610
Joined: Mon May 01, 2006 3:00 am

Re: Conditonal Auto-responses.

Post by Robby »

Not being a coder myself I don't know whether this will work with AppleScript.
If you're looking for help with it, though, the following entries in the Adium Wiki should be helpful: AppleScript and AppleScript support in Adium 1.2 and Later. :)
wdavies
Harmless
Posts: 2
Joined: Sat Jan 10, 2009 12:24 am

Re: Conditonal Auto-responses.

Post by wdavies »

Thanks Robby, that was a help - now I can applescript a push button response, but I still cant set up an Event Handler for a specific chat window. Hopefully someone else will see this post!
User avatar
Robby
Cocoaforge Admin
Posts: 2610
Joined: Mon May 01, 2006 3:00 am

Re: Conditonal Auto-responses.

Post by Robby »

You could get help at our mailing list or in the developer's IRC channel. See the "Development" Adium Wiki article.
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: Conditonal Auto-responses.

Post by mtimmsj »

Current AppleScript does not have access to the messages within a chat. Please see:

http://trac.adiumx.com/ticket/7615

And
http://trac.adiumx.com/ticket/6214
Post Reply