Automatically Setting Adium IM Status with AppleScript

By · Published · apple, applescript, mac, osx

I have more than 20 various IM accounts set up in Adium on my Macintosh. But during the day, the only one I really want to be active is the one I use for work. The remainder, I want to leave logged in, but showing as away with a warning not to bother me unless it is important. But half the time I forget to set all those accounts as away, or I forget to set the work one as available, or some other issue that would arise out of a manual process interferes and too often it doesn't get done.

Enter AppleScript. I whipped up a surprisingly easy AppleScript to do just this:

tell application "Adium"
    go away with message "Working. Please do not disturb unless necessary."
    go available first account
end tell

Because the work account is the first one, this makes it easy. It just sets all accounts as away and then sets the work one available. I shove this in my MarcoPolo ruleset to fire when I arrive at the office.

The script to reverse the change when I leave is even easier. This is fired when I leave the office:

tell application "Adium" to go available
( Comments )

Did something I wrote help you out?

That's great! I don't earn any money from this site - I run no ads, sell no products and participate in no affiliate programs. I do this solely because it's fun; I enjoy writing and sharing what I learn.

All the same, if you found this article helpful and want to show your appreciation, here's my Amazon.com wishlist.


Related Posts

Creating an iTunes Dropbox on a Mac

Scripting iTerm with AppleScript


comments powered by Disqus