Page 1 of 1

Applescript and existing status

Posted: Mon Nov 14, 2005 6:30 am
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.

Posted: Mon Nov 14, 2005 4:52 pm
by DeathAxe
Yes it would be a great idea like an Applescript with all the MSN Messenger status.

Posted: Mon Nov 14, 2005 7:14 pm
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).

Posted: Mon Nov 14, 2005 9:59 pm
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.

Posted: Thu Nov 17, 2005 5:47 pm
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.

Posted: Sun Jan 01, 2006 11:31 pm
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.