Set Adium Status Message with Quicksilver

I just wrote an AppleScript for setting the status on Adium using Quicksilver. :) It’s dedicated to usage with FriendFeed, which I recently registered at. It’s not something new (read below) but at least this works.

Here goes:

using terms from application "Quicksilver"
  on process text ThisClipping
    tell application "Adium"
      if (ThisClipping is not "" and ¬
        (first character of ThisClipping is "/")) then
        set theCommand to first word of ThisClipping as text

        if (theCommand is "o" or ¬
          theCommand is "off" or ¬
          theCommand is "offline") then
          go offline
        else if (theCommand is "i" or ¬
          theCommand is "invis" or ¬
          theCommand is "invisible") then
          go invisible
        else if (theCommand is "a" or ¬
          theCommand is "away") then
          if ((count words of ThisClipping) is 1) then
            go away
          else
            go away with message ¬
              (texts (offset of (word 2 of ThisClipping) in ThisClipping) ¬
                thru -1 of ThisClipping)
          end if
        end if
      else
        go available with message ThisClipping
      end if
    end tell
  end process text
end using terms from

This was written after referring to these two blog entries. (I didn’t even bother changing the ThisClipping variable name, as you can see.)
Paste the code into Script Editor. As written in the first blog entry I’ve mentioned, you can save this in “~/Library/Application Support/Quicksilver/Actions“. If the directory doesn’t exist, just create it. And restart QuickSilver after that.

I named my script “Adium Status.scpt”, so I could use it after typing “A” and “S”. (of course, I could also type “status”, or whatever.)

Features:

  • “/a”, “/away” changes your status to Away
  • “/i”, “/invis”, “/invisible” changes your status to Invisible
  • “/o”, “/off”, “/offline” tells Adium to go Offline

You could type “/a Something” and your status will be set to Away with a custom status message of “Something”.
Your custom status message is set leaving your Status as Available on default.
The custom status message only works with the Away command because you can’t have status messages while you’re Invisible or Offline. (duh)
This is tested with the latest 1.3b5 beta of Adium and latest build of Quicksilver.

Tags: , , ,

4 Responses to “Set Adium Status Message with Quicksilver”

  1. Joanie Says:

    works great, but how do i then come back from an away state via quicksilver?

  2. Joanie Says:

    nevermind, looked into the script and added it, works great!

  3. chris Says:

    Haha actually, if the message is blank, it should remove the status and become “available” again. Sorry for the late response. Been busy. Heheh.

  4. Dan Says:

    This is awesome! One question/suggestion, though, is there a way to specify which accounts change status? Because I have four accounts enabled, one of which is facebook, and I usually don’t use that last one (that is, it’s offline, when the statuses of the other three are linked). Can I change the status of just the three I use without changing the facebook status (as it stands now, if I go away with the three I use, using your script, it also connects my facebook account and puts it to away.) Thanks so much for the script though, I can definitely work around this detail.

    Also, would there be a way to choose from your existing saved away messages using this script?

Leave a Reply