Applescript and existing status

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
Akchizar
Harmless
Posts: 12
Joined: Mon Nov 14, 2005 5:44 am
Contact:

Applescript and existing status

Post by Akchizar »

Is there a way to geta list of all predefined status messages using applescript? I currently have to use a custom message (even when set to status: available with text: ""), which, although not much of a problem, is a bit annoying. It would be much nicer to grab a preset from Adium and be able to use that.
DeathAxe
Frappa
Posts: 112
Joined: Thu Jun 23, 2005 9:43 pm
Location: Montreal, Canada

Post by DeathAxe »

Yes it would be a great idea like an Applescript with all the MSN Messenger status.
Image Please search the forums and trac before posting!
User avatar
cbarrett
Adium Team
Posts: 389
Joined: Thu Dec 02, 2004 2:30 am
Location: Kailua, HI
Contact:

Post by cbarrett »

Applescript in Adium is really kind of crappy. I wonder if Applescript is the right way to go? It seems like it's a fair ammount of work to maintain. Why not just drop PyObjC or a Smalltalk interpreter in there? Lua probably is out of the running, since it really isn't very OO. But there are plenty of better languages than Applescript.

That being said, AS support should probably still be continued, to some degree. But I would still really like to see something in between writing a full ObjC plugin and writing something in Applescript (which you can't deny is a rather limited language).
Akchizar
Harmless
Posts: 12
Joined: Mon Nov 14, 2005 5:44 am
Contact:

Post by Akchizar »

Although AppleScript is, admittedly, rather crappy and frustrating (after spending more than five minutes coding in it I tend to want to throttle something), it's still useful in that I can make calls to it from pretty-much anywhere in OS X. It'd be nice to have Adium support for another language (simply because more complex scripts would be so much easier to do), you need to stilll have an AppleScript frontend on there so I can tell Quicksilver to set me away whenever I leave my cursor in the corner of the screen for more than three seconds.
User avatar
cbarrett
Adium Team
Posts: 389
Joined: Thu Dec 02, 2004 2:30 am
Location: Kailua, HI
Contact:

Post by cbarrett »

Oh sure, I wasn't suggesting we kill AS support in Adium. It's just that a lot of the more complicated scripts would better be done in another language. It also doesn't help that Adium's applescript implementation is lacking in some areas... At least, that was the case the last time I looked at it.
Akchizar
Harmless
Posts: 12
Joined: Mon Nov 14, 2005 5:44 am
Contact:

Post by Akchizar »

In case anyone saw this thread and wished they could do it - now you can, thanks to Quicksilver. As inspired by this post on the Tao of Mac:
  1. Download latest version of Quicksilver
  2. Download the User Interface Access plugin
  3. In the triggers pane, add a trigger for Adium>Menu Bar Items...>Whatever status you want
  4. Add whatever trigger you want.
I currently have Adium set to away when my mouse enters the right-hand edge of the screen and stays there for more than 2 seconds.
Post Reply