Update Twitter and iChat status messages with Quicksilver

Oh this was totally the highlight of my day.

First, you should all get twitter accounts. Mine is http://twitter.com/hoist2k

Next you should all get Quicksilver (this is not optional and I really can’t believe you don’t use it)

(Oh and I assume you all use OS X)

Copy and paste the following code into ~/Library/Application Support/Quicksilver/Scripts/twitterStatus.scpt (you might have to create the dir)

—- SNIP START CODE —-

using terms from application “Quicksilver”on process text tweet

tell application “Keychain Scripting”

set twitter_key to first Internet key of current keychain whose server is “twitter.com”

set twitter_login to quoted form of (account of twitter_key & “:” & password of twitter_key)

end tell

set twitter_status to quoted form of (“status=” & tweet)

set results to do shell script “curl –user ” & twitter_login & ” –data-binary ” &

twitter_status & ” http://twitter.com statuses/update.json”

— display dialog results

tell application “iChat” to set status message to tweet

return nothing

end process text

end using terms from

—–SNIP END CODE ——

Next, open Keychain and add an entry for a new internet site: http://twitter.com. Make the username and password your twitter info (login is email).

You may have to edit Quicksilver prefs to look in that newly created folder and restart it. YMMV. Restarting quicksilver is really hard because when it’s off, you can’t use it to launch itself 🙂 )

Finally, you can “twit” or whatever your keystroke is, followed by tab-tab (the action should be “process text”) and type your text. Coolio!

PS I can’t take credit for the site (see trackback URL), but that site has some typos (incorrect fonts in the script and a file named .scrpt and not .scpt, but it won’t accept my useful suggestions in the comments due to buggy captchas 😦

Advertisements

2 Responses to Update Twitter and iChat status messages with Quicksilver

  1. hoist2k says:

    WordPress is buggy as all hell. Sorry about that. Be sure to check your line endings when you paste the script. The editor fux0red everything and 15 mins on a post is my current limit. –Ben

  2. Hi! Looks like you were on to something here. If you get another 15min, I’d love it id you could revisit this post. 🙂 Darn wordpress!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: