Twitter + Quicksilver + Growl = Tweet+Growl

A while ago after much discussion of Twitter by Leo Laporte and Merlin Mann on MacBreak Weekly I decided to sign up. I like it, I can’t explain why, I just do. It satisfies my urge to talk to noone in particular.Shortly after discovering Twitter I immediately went looking for the best way to post to Twitter. Where I found the Tweet = Twitter + Quicksilver which is a great little script, but it never told me when it was successful. (and during twitters recent downtime I Tweet’d several times.)So in the spirit of open source I decided to improve it by adding Growl support. So without further ado I present to you Tweet+Growl

tell application "GrowlHelperApp"	set the allNotificationsList to {"Success Notification", "Failure Notification"}	set the enabledNotificationsList to {"Success Notification", "Failure Notification"}	register as application ¬		"Tweet" all notifications allNotificationsList ¬		default notifications enabledNotificationsListend tellusing 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 & "-D - --data-binary " & twitter_status & " http://twitter.com/statuses/update.json"		set code to word 3 of results		if code = "200" then			tell application "GrowlHelperApp"				notify with name ¬					"Success Notification" title ¬					"Tweet Success" description ¬					"Successfully twittered \"" & tweet & ¬					"\"" application name "Tweet"			end tell		else			tell application "GrowlHelperApp"				notify with name ¬					"Failure Notification" title ¬					"Tweet Failure:" & code description ¬					"Failed to twitter \"" & tweet & ¬					"\"" application name "Tweet"			end tell		end if		return nothing	end process textend using terms from

Technorati Tags: ,

Tags: ,

6 Responses to “Twitter + Quicksilver + Growl = Tweet+Growl”

  1. oubiwann Says:

    A-ha! There *is* a social software that you like ;-) This must be your WoW/EVE …

  2. r3v.com » Blog Archive » links for 2007-04-24 Says:

    [...] Twitter + Quicksilver + Growl = Tweet+Growl (tags: mac osx software quicksilver twitter growl tweet applescript) [...]

  3. bluno.org » links for 2007-06-24 Says:

    [...] Twitter Quicksilver Growl = Tweet Growl (tags: osx twitter quicksilver) [...]

  4. The Republic of Geektronica » Blog Archive » Coming Soon: MacBookPrOwner.com Says:

    [...] these instructions for adding a Tweet action to Quicksilver, but use this script [...]

  5. Curtis Says:

    Hmm, this script sounds really great, but it doesn’t seem to be working for me.

  6. sw’as » Blog Archive » Using Quicksilver to start or stop internet sharing in OS X Tiger Says:

    [...] my case that’s /Users/simon/Library/Application Support/Quicksilver/Actions. [↩]Or because ↩]In my case that’s /Users/simon/Library/Application Support/Quicksilver. [↩]If you’re [...]

Leave a Reply