applescript "new chat" command

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
Ludge
Latté
Posts: 79
Joined: Sat Mar 19, 2005 5:20 pm

applescript "new chat" command

Post 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.
Image
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post 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.
Blog | X(tras)
Communists code without classes.
Ludge
Latté
Posts: 79
Joined: Sat Mar 19, 2005 5:20 pm

Post 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.
Image
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post 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.
Blog | X(tras)
Communists code without classes.
Ludge
Latté
Posts: 79
Joined: Sat Mar 19, 2005 5:20 pm

Post 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.
Image
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post 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 ;)
The duck still burns.
--
My company: Saltatory Software. Check it out :)
Ludge
Latté
Posts: 79
Joined: Sat Mar 19, 2005 5:20 pm

Post 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.
Image
atomlov
Harmless
Posts: 1
Joined: Wed Jun 22, 2005 6:09 pm

Adium Dictionary

Post 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!
Ludge
Latté
Posts: 79
Joined: Sat Mar 19, 2005 5:20 pm

Post by Ludge »

atomlov:

Press cmd + shift + O and choose Adium.



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