RSS

Posting to twitter with Quicksilver, Twitterific, and a script.

Tue, Apr 22, 2008

Adv. Tips

    By: Joshua Schnell

The more I use Quicksilver the more I love it. It’s so complicated that it can be daunting at times, but it’s time well spent. Today, I spent some time trying to streamline some of the things I do on my laptop without having too many windows open. I stumbed across an interesting article that lets you post to twitter with quicksilver.

  1. Install Quicksilver, Install Twitterific.
  2. Use the following script
  3. Use the script posted below
  4. Open Script Editor, and post the code into it.
  5. Save it to

    ~/Library/Application Support/Quicksilver/Actions

  6. Name it tweet.scpt
  7. Make sure you have an Actions folder, I didn’t so I had to create it.
  8. Restart Quicksilver. Make sure the script you created is listed in the preferences of Quicksilver under actions.
  9. Now the fun part. Launch Quicksilver
  10. Push the period key to enter into text mode.
  11. Hit tab to move to the next action box and begin to type your script name.
  12. Voila!

Note: you have to have Twitterific installed because the script uses the keychain information to access the twitter server. The first time you do it, you’ll be asked to allow access to the keychain info. It’s normal.

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
return nothing
end process text
end using terms from

Script courtesy of Codahale

Share and Enjoy:
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati
  • TwitThis
  • Google
  • Mixx
  • NewsVine
  • Propeller

Related Posts

, , ,

This post was written by:

Joshua Schnell - who has written 336 posts on Macgasm.

Well, I'm pretty much addicted to all things Apple, and Twitter. That's probably all you really need to know. If I'm not posting here, I'm probably wasting time on Twitter.

Contact the author

Viewing 1 Comment

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus