October 16th, 2007

The Raw Power Of Launchbar + Shell

Filed under: geek,mac — saul @ 9:41 AM

So I’ve been twitting for a short time, Like so many people I downloaded ‘Twittererific’ and have been happily twitting away - it’s a solid sexy little app, and honestly I would expect nothing less from the guys at iconfactory, they rock, and rock hard. Given my recent love affair with the shell, I realized last night that I could easily leverage Launchbar to be my twitting tool of choice; twitters API is simple and concise.

curl --basic --user "USERNAME:PASSWORD" --data-ascii ¬
"status=YOUR DESIRED TWIT" " ¬
http://twitter.com/statuses/update.json"

So to tie that to Launchbar we simply add the argument passed (your typed status) from launchbar into the script, save it in ‘\bin’ CHMOD it executable, and bind it to a search template

curl --basic --user "USERNAME:PASSWORD" --data-ascii ¬
"status=$1" "http://twitter.com/statuses/update.json"

That’s all it really takes to post, how simple is that?, of course to get your friends status it’ll take a bit more, I’m thinking ‘geektool’ is the right tool for that job, but that’s a different post (hopefully tomorrow).

Tagged: , ,