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.
- Install Quicksilver, Install Twitterific.
- Use the following script
- Use the script posted below
- Open Script Editor, and post the code into it.
- Save it to
~/Library/Application Support/Quicksilver/Actions
- Name it tweet.scpt
- Make sure you have an Actions folder, I didn’t so I had to create it.
- Restart Quicksilver. Make sure the script you created is listed in the preferences of Quicksilver under actions.
- Now the fun part. Launch Quicksilver
- Push the period key to enter into text mode.
- Hit tab to move to the next action box and begin to type your script name.
- 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