Send twitter status via Applescript
Monday, May 21st, 2007Hey everybody,
a few days ago I signed up to Twitter.
Today I spent some time on setting up my Chatclient script (simple AppleScript script which sets a text as a status message for my chatclients Adium and Skype) - and it works!
1 First of all you have to get your key of your twitter acount from the Keychain
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
2 Set the text from your input to the twitter_status
set twitter_status to quoted form of ("status=" & mood_message)
3 Send your message to twitter via curl
do shell script "curl --user " & twitter_login & " -F " & twitter_status & " http://twitter.com/statuses/update.json"
Thanks to Growlified Tweet Deluxe (based on Ted Leung’s Growlified Tweet) for the original code.





