Set Adium status from Launchbar?

General discussions about LaunchBar
Post Reply
vnoel
Posts: 4
Joined: Sun Sep 23, 2007 3:05 pm

Set Adium status from Launchbar?

Post by vnoel » Sun Sep 23, 2007 3:44 pm

Hey all,
does anyone know of a way to set the adium status message from within Launchbar? I know you can do it from Quicksilver using the Moodswing action, but is there something similar for Launchbar (which I like better) ?

Thanks a lot for any info...

ludwigschubert
Rank 4
Rank 4
Posts: 285
Joined: Fri Jun 29, 2007 5:54 pm
Location: Germany, Bavaria

Post by ludwigschubert » Sun Sep 23, 2007 8:10 pm

It appears to me that the Quicksilver action really is just a Script that takes text input.

So in LaunchBar you can just make a new folder for your Scripts, put the "Quicksilver Action" for Moodswing in there. When you select it in LB just hit space and type your message.

I looked at the script and I'm not entirely sure what's going on there – it might need a little modification, but since I use none of the apps it's designed for I can't test it.
Maybe you could just try it out… ? :-/

regards,
L

vnoel
Posts: 4
Joined: Sun Sep 23, 2007 3:05 pm

Post by vnoel » Thu Sep 27, 2007 11:24 am

Thanks for the reply.
Actually it looks like the moodswing script is not being updated anymore, being replaced with so-called "moodblast", which is a full-blown application. Once you've installed it, you can use Launchbar as usual to open its window - i.e. type "mb" in Launchbar and the moodblast window pops up (even if moodblast is already running).
I don't see a direct way to enter the status message in Launchbar itself (which would save one "return" keystroke ;-)) but it's working pretty well.

ludwigschubert
Rank 4
Rank 4
Posts: 285
Joined: Fri Jun 29, 2007 5:54 pm
Location: Germany, Bavaria

Post by ludwigschubert » Thu Sep 27, 2007 3:40 pm

You could ask the moodblast author to add AppleScript support (if there isnt already) and then use an on handle_string(s) construction in an AS, then run it from LaunchBar…

If you can show me the documentation for moodblast (couldn't find on their website) then I could help you with the script ;-)

Ludwig

[update]: to me it seems like currently there's no support for AppleScript in moodblast. however, you still could ask the author

vnoel
Posts: 4
Joined: Sun Sep 23, 2007 3:05 pm

Post by vnoel » Mon Oct 01, 2007 12:33 pm

Thanks for the reply! After taking a look inside the Moodswing script itself, I tried my hands at a little applescripting. It was much less painful than I thought. Here is the result so far:
http://vn.bingodisk.com/public/setadiumstatus.zip

It's a very small script that sets your Adium status from within Launchbar, using the on handle_string(s) function. For now it only works with Adium, but it should be pretty easy to adapt it to work with Skype or iChat.

The only thing I'm having trouble with now is with hiding Launchbar after execution. I've tried adding "open location "x-launchbar:hide"" at the end of the handle_string function, but it makes Launchbar crash (I found this command in another Launchbar script). Any idea?

ludwigschubert
Rank 4
Rank 4
Posts: 285
Joined: Fri Jun 29, 2007 5:54 pm
Location: Germany, Bavaria

Post by ludwigschubert » Mon Oct 01, 2007 1:18 pm

Nice to hear you tried it for yourself - I also found AS to be much nicer than I expected :-)
Very Nice script, too

But… hm. "open location "x-launchbar:hide"" doesn't crash LB for me, it works as excpected.
Have you installed the newest Version of LB? I think this AS-command was only introduced somewhere around 4.3.1.

If that's the case you could try to find someone with all those programs (Adium, Growl, etc.) to try it for you. I know that must sound incredibly lame, but I don't even use Growl, let alone an IM…

Well, good luck! :-)

Ludwig

vnoel
Posts: 4
Joined: Sun Sep 23, 2007 3:05 pm

Post by vnoel » Mon Oct 01, 2007 3:24 pm

something must have been weird in my launchbar setup. I recreated the default config, and now it doesn't crash anymore.

now I'm wondering what else can be done with this newly found applescript power... :-)

Thanks a lot!

Post Reply