Applescripting question

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
User avatar
lankybutmacho
Harmless
Posts: 10
Joined: Mon Dec 13, 2004 5:44 pm
Location: Madison, WI

Applescripting question

Post by lankybutmacho »

I'm in the process of writing some scripts to control Adium from Quicksilver (Yes, I realize that there's a Quicksilver plug-in for Adium, but it doesn't quite do everything I want). Here's a problem I'm running into. I want to be able to send a message to the active chat window while Adium is NOT active. That is to say that while Adium is in the background and I get a Growl notification of a received message, I want to be able to activate quicksilver, type a message, and send it to the last person I was talking with without switching to Adium. There is an item in the Adium applescript dictionary for "active chat"; it's a member of the interface controller. It works to do the following:

Code: Select all

tell application "Adium"
     send (active chat of the first interface controller) message theString
end tell
However, this ONLY works when Adium is already the active application. So I would have to stick an "activate" in before the send message command. That kind of defeats the purpose, though. The idea is to be able to send messages without any visual distraction or interruption. Is there any way I can access "active chat" without activating Adium? I'm a bit of a newbie to applescripting.[/code]
Post Reply