Skip to content

Instantly share code, notes, and snippets.

@heycarsten
Created November 25, 2008 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heycarsten/29119 to your computer and use it in GitHub Desktop.
Save heycarsten/29119 to your computer and use it in GitHub Desktop.
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 ("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
return nothing
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