Setting Adium Status Message from Plazes with Applescript

Peter Rukavina
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.

Comments

Submitted by Chris Messina on

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?

Submitted by Ted Shelton on

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 “Plazes.com: ” & plazename

Works great! Thanks for this cool Applescript!

Submitted by Scott Trudeau on

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.

Submitted by Peter Rukavina on

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.

Submitted by Pete Prodoehl on

Permalink

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

Submitted by Casper Fabricius on

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 :)

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search