Page 1 of 1

applescript "new chat" command

Posted: Sun Jun 19, 2005 11:33 pm
by Ludge
Hey everyone, got a question for the Applescript gurus here! (zaudragon, are you around?!)

I've been trying to write an applescript which will initiate a new chat with someone on your contact list. However I'm struggling to understand how to do this as the library for Applescript isn't very helpful.

Can anyone post a (working!) example please? I have plenty of non-working ones. Something that works with the current v0.82 release if possible. Credit *will* be given where due.

Thanks,
Ben.

Posted: Mon Jun 20, 2005 12:18 am
by zaudragon
Let's try off of the top of my head:

Code: Select all

tell application "Adium"
	new chat with contact "screennamegoeshere"
end tell
Of course, it's from my memory. Try it; tell me if it doesn't work.

Posted: Mon Jun 20, 2005 6:42 am
by Ludge
Well, the correct equivalent of that is:

Code: Select all

tell application "Adium"
	create chat with UID "screenname"
end tell
Which compiles OK but doesn't do anything. Adding "on service "service" " is the same. This is what I found so confusing.

Posted: Mon Jun 20, 2005 7:28 am
by zaudragon
Ludge wrote:Well, the correct equivalent of that is:

Code: Select all

tell application "Adium"
	create chat with UID "screenname"
end tell
Which compiles OK but doesn't do anything. Adding "on service "service" " is the same. This is what I found so confusing.
Well then, why did you ask? Adium 0.8x has a known AppleScript bug; some commands just don't do anything.

Posted: Mon Jun 20, 2005 9:22 am
by Ludge
zaudragon wrote:
Ludge wrote:Well, the correct equivalent of that is:

Code: Select all

tell application "Adium"
	create chat with UID "screenname"
end tell
Which compiles OK but doesn't do anything. Adding "on service "service" " is the same. This is what I found so confusing.
Well then, why did you ask? Adium 0.8x has a known AppleScript bug; some commands just don't do anything.
Because I thought that I might have been doing something wrong that another person could point out.

Also there didn't seem to be anything like this on trac, so figured it was worth checking here.

Posted: Mon Jun 20, 2005 3:42 pm
by evands
zaudragon wrote:Adium 0.8x has a known AppleScript bug; some commands just don't do anything.
If someone would compile a list of what of the AppleScript dictionary is buggy, that'd be helpful towards fixing it ;)

Posted: Mon Jun 20, 2005 4:25 pm
by Ludge
I'll post a couple that have already been submitted to trac:

#593 Getting "my status" doesn't work properly

#574 You can only set your status to "Available" (and I do realise you can change your status message)

And two more:
"Create chat" doesn't seem to work (if it does, please correct me!).

Enhancement request: Being able to retrieve a contacts group along with the other data like long display name and serviceClass.

Adium Dictionary

Posted: Wed Jun 22, 2005 6:14 pm
by atomlov
I've seen a couple places where this is referred to, but I can't seem to actually find the "Adium Dictionary".

I'm very new to AppleScript, but would like to write a Automator function/AppleScript that duplicated Proteus's SMS Forwarding.

Thanks!

Posted: Wed Jun 22, 2005 6:28 pm
by Ludge
atomlov:

Press cmd + shift + O and choose Adium.



Then you can always pick it off the Library window list (cmd + shift + L)