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
This is brilliant! I love it.
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?
I wanted to let people know
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!
This is cool! However,
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.
In the “Contacts” window in
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.
Wow, this is really cool!
Wow, this is really cool!
Nice script, just set it up
Nice script, just set it up on my system. I still wish Plazes has a RESTful API, but this was pretty darn easy.
Veeeeeery nice. Works
Veeeeeery nice. Works brilliant. Thank you for that!
Nice script, Peter. Was able
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