Skip to content

Instantly share code, notes, and snippets.

@tmitchell
Created July 10, 2010 00:23
Show Gist options
  • Save tmitchell/470277 to your computer and use it in GitHub Desktop.
Save tmitchell/470277 to your computer and use it in GitHub Desktop.
-- Tweet.scpt
-- Applescript for Quicksilver to post to Twitter using Twitterrific credentials stored in the keychain
-- Copy to ~/Library/Application Support/Quicksilver/Actions and restart Quicksilver
-- Modified from http://blog.codahale.com/2007/01/15/tweet-twitter-quicksilver/
using terms from application "Quicksilver"
on process text tweet
tell application "Keychain Scripting"
set twitter_key to first key of current keychain whose name is "Twitterrific"
set twitter_login to quoted form of (account of twitter_key & ":" & password of twitter_key)
end tell
set twitter_status to quoted form of ("source=qucs&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
log results
end process text
end using terms from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment