I’ve updated Tweet, the Applescript Quicksilver action for Twitter, so that it sends a Growl notification when it completes. The code is here.

Archives
- June 2014
- September 2013
- September 2012
- April 2012
- March 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- May 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
Categories
Tags
adobe
apache
apachecon
blogging
books
chandler
community
concurrency
data
dynamic languages
erlang
family
flash
flex
flickr
functional programming
gadgets
internet
iPad
iPhone
java
javascript
languages
leopard
lightroom
Macintosh
microblogging
nikon
open source
osaf
photographs
photography
programming
programming languages
pycon
python
ria
ruby
Seattle
strobist
Sun
tools
twitter
web2.0
WordPress












This is so frickin’ sweet. Thanks!
Works wonderfully.
Thanks!
This is absolutely sweet!
Would be just perfect if the growlification could go the other way around, I mean notifying of new incoming twitters… but probably that’s something for twitterific more than for Tweet.scpt
Anyway, again thanks for the good stuff!
Big up!
Thanks for the great script.
I just edited the script so it pushes the update to your iChat Status Message.
You can see it here.
sweet!
Thanks a million for this Ted.
I love Quicksilver, but the one problem with using it to update Twitter was that you couldn’t tell if your tweet was too long. Word/letter/line counting is a simple but useful function that I couldn’t find anywhere else in Quicksilver, so I wrote my own AppleScript action for it (I borrowed your code for Growl notifications). Anyone who wants to add such functionality to Quicksilver can get the script from my post on the Quicksilver forums here:
http://blacktree.cocoaforge.com/forums/viewtopic.php?t=5436
I hope people find this useful. Previously I’d echo my tweet through a pipe to wc and run as a shell command. This action is a big improvement
I activate Quicksilver, press period to enter my text, then tab, then WC to select my Word Count action, enter, then (assuming it’s not too long) press tab and TW to select the Tweet action and press enter.
Now Quicksilver is my favourite way to update Twitter too!
Now Quicksilver provides my favourite way to update Twitter.
I think I’m in love.
I modified your Growlified Tweet script to check the message length before sending it off to Twitter. Maybe some of you might be interested:
using terms from application "Quicksilver"on process text tweet
-- Init
my growlRegister()
set charcount_max to 140
set charcount_tweet to (count characters of tweet)
-- Check message length
if charcount_tweet ≤ charcount_max then
-- Get credentials for twitter.com
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)
try
-- Send tweet
do shell script "curl --user " & twitter_login & " -F " & twitter_status & " http://twitter.com/statuses/update.json"
-- Display success message
growlNotify("Tweet Sent", tweet)
on error
-- Display error message
growlNotify("Error Sending Tweet", "There was an error sending your Tweet.")
end try
else
-- Tweet is too long
growlNotify("Tweet Too Long", "Tweet is " & charcount_tweet & " characters long. The maximum length is " & charcount_max & " characters.")
end if
end process text
end using terms from
using terms from application "GrowlHelperApp"
-- Register Growl
on growlRegister()
tell application "GrowlHelperApp"
register as application "Tweet" all notifications {"Alert"} default notifications {"Alert"} icon of application "Script Editor.app"
end tell
end growlRegister
-- Notify using Growl
on growlNotify(grrTitle, grrDescription)
tell application "GrowlHelperApp"
notify with name "Alert" title grrTitle description grrDescription application name "Tweet"
end tell
end growlNotify
end using terms from
I modified your Growlified Tweet script to check the message length before sending it off to Twitter. Maybe some of you might be interested: http://www.breun.nl/2007/04/growlified_tweet_deluxe.html
Hi Ted,
Thansk for this bud. For some reason though the script isn’t working. The Growl alert comes up fine, but the tweet never gets twittered. The original QS tweet script here is working ok.
Thanks for the beautiful work, but I’m sorely missing the use of this script since late December. Growl alerts keep popping up but Tweets never actually reach their destination. Any idea what might need adjustment? I’m guessing Twitter changed something.
I’ve updated the script so it should be working now.
Thanks so much. This script has really made an impact on my daily life. Not that I’m a twittaholic, but it makes my twitting impulses that much less distracting.
I’m an avid Quicksilver and Twitter user. I found this today, but as I’m not skilled at scripts etc I seem to be having trouble.
As I understand it, I…
1. copy your scpt file into an Actions folder in the user/library/applicationsupport/quicksilver folder…
2. restart quicksilver
3. cmd-space period tab enter
4. growl notifies me that tweet is sent
but nothing happens after #3
help?
h.