Setting Adium Status Message from Plazes with Applescript

The code described here has been moved into Subversion.

One last Plazes experiment for the day, built on the back of yesterday’s AppleScripting: an AppleScript to set your Adium status message to your current Plazes location.

Here’s how to paste the pieces together.

First, grab this AppleScript code and paste it into Script Editor. Change the values for your Plazes username and password, and save as an AppleScript application. Make sure you set the File Format to “Script,” as in the following screen shot:

Next, in the Adium preferences, select Events, and double click on the “You Connect” event, select “Run an Applescript” as the Action, and select the AppleScript you just saved as the script:

That’s it. Now every time you run Adium and connect, the AppleScript should run, connect to Plazes, get your current location, and set your status message:

The script assumes you’ve already run the Plazes launcher. I haven’t tested the code extensively. And thanks to Adium for having such wonderful AppleScript support! Comments welcome.


Chris Messina's picture
Chris Messina on June 23, 2005 - 21:22 Permalink

This is brilliant! I love it. What I’m going to be interested to see is how this spreads geographically… I’m guessing you guys up in PEI will start mapping the “wifi” terrain quite soon… and us in SF will do the same. Any predictions on where this will spread fastest?

Ted Shelton's picture
Ted Shelton on November 26, 2005 - 22:38 Permalink

I wanted to let people know that I was using Plazes to generate my status message, so I modified one line in the script to concatanate the web address with my plazename:

set my status message to “ ” & plazename

Works great! Thanks for this cool Applescript!

Scott Trudeau's picture
Scott Trudeau on January 19, 2006 - 20:36 Permalink

This is cool! However, unfortunately when I change my Available / Away status, it loses my message, and Adium doesn’t appear to have a “Change your status” event.

Peter Rukavina's picture
Peter Rukavina on January 19, 2006 - 21:55 Permalink

In the “Contacts” window in Adium, at the top of the list of your contacts you will see your current status message; click on the message to see a drop-down list of other settings to change your status.

Pim Rupert's picture
Pim Rupert on March 3, 2006 - 19:13 Permalink

Wow, this is really cool!

Pete Prodoehl's picture
Pete Prodoehl on September 21, 2006 - 13:10 Permalink

Nice script, just set it up on my system. I still wish Plazes has a RESTful API, but this was pretty darn easy.

Felix Hardmood Beck's picture
Felix Hardmood Beck on April 3, 2007 - 09:19 Permalink

Veeeeeery nice. Works brilliant. Thank you for that!

Casper Fabricius's picture
Casper Fabricius on June 2, 2007 - 11:04 Permalink

Nice script, Peter. Was able to copy the Adium lines into another script, so both Jaiku and Adium are now updated directly from Quicksilver :)