This is my old blog. My current writing is here:

Tweet = Twitter + Quicksilver

Jay wants to know how to post to Twitter from Quicksilver. I don't blame him.

I’m not entirely sure why, but I signed up again for Twitter this morning. Now that it’s not just Tony sending me text messages at 2am about chocolate cake, I can see why people like it. I’ve also been spending some serious time getting geeky with Quicksilver, so I decided to hack together a script to make the two play nicely together.

The upshot? Cmd+Space, period, type your message, tab, tw, enter.

First, The Script

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 ""
      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 & ""
    -- display dialog results
    return nothing
  end process text
end using terms from

Copy this to the clipboard.

Second, Installing It

Paste the script into Script Editor and save it in ~/Library/Application Support/Quicksilver/Actions as Tweet.scpt.

Restart Quicksilver (Cmd+Ctrl+Q).

Third, Configuring It

If you’re not already using Twitterrific, open Keychain Access and add a new password with the following data:

  • Keychain Item Name:
  • Account Name: Your email address
  • Password: Your Twitter password

If you’re already using Twitterrific, this password will already be in your Keychain. So just sit tight.

Fourth, Using It

Open up Quicksilver (either Ctrl+Space or Cmd+Space), and hit period. Type out your message, and hit tab when you’re done. Type out as much of the word “Tweet” as you need to select the Tweet action. Hit enter. There, it’s sent.

There is no error checking, so if you’ve got the wrong login info, or if Twitter is down, you’ll never know about it. I guess I’m an optimist. Also, it’s Twitter!


Update: 1/16/07 Added escaping for the status so that special POSIX characters in your tweet don’t freak out the Bash shell.

Update: 1/20/07 Switched over to --data-binary from -F so that messages which started with @ can be posted.

Update: 1/21/07 Just realized that Quicksilver picks up the script as an action if you put it in the Actions folder, making everything way easier and way less complicated. Yay!

Update: 9/2/08 Mike Keen writes in to say: 

I have been enjoying your Quicksilver/Twitter script. I contacted twitter and added “Quıcĸsıɩⅴεʀ” as a source, so now when people Tweet using your script, it will say “from Quıcĸsıɩⅴεʀ” on Twitter with a link to your blog post. Just change line 3 to:

set twitter_status to quoted form of ("source=qucs&status=" & tweet)

and use the -d CURL option instead of -F

It works like a charm!

I’ve updated the script with his changes. Thanks, Mike!

98 Responses to “Tweet = Twitter + Quicksilver”

  1. Tony Stubblebine Says:

    Coda, i just had some rocky road ice cream.

  2. Michael Ivey Says:

    Sweet. Thanks.

  3. Alex Payne Says:

    Nice lil’ hack. Thanks!

  4. Peter Cooper Says:

    Superb! Works a treat.. which is great for me as that Dashboard widget never worked.

  5. Quicksilver - blogging with Wordpress by email | eDragonu - the choice of a personal path Says:

    [...] Now, I said something about Twitter earlier… It seems that there is a Quicksilver plugin that already does that directly. Meaning you are posting using twitter API. You can find it here. Share this post on:These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  6. Ted Leung on the Air » Blog Archive » Growlified Tweet Says:

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

  7. Ted Leung on the Air » Blog Archive » Social social networking Says:

    [...] There’s a small ecosystem springing up around Twitter. There are Ruby command line tools (sadly, I couldn’t get them to work because Ruby Gems is messed up on OS 10.4), Python/Growl notifiers (works, but high maintenance), and shiny Mac tools like twitterific. Someone has even written an Applescript Quicksilver action, Tweet, for posting. There are still a few things on my wishlist: 1) for Twitterific to both have it’s little history window and to deliver changes via Growl, and 2) to be able to set my status in Adium, Snak, and Skype based on Tweets. [...]

  8. Bwana Says:

    Perfect! Great Job.

  9. blog.ariffic » links for 2007-01-19 Says:

    [...] Tweet = Twitter + QuickSilver | Archives | codablog | Coda Hale Sweet! Coda Hale’s glued together two great things, Quicksilver and Twitter. (tags: mac software webdev) [...]

  10. » Blog Archive » Tweeter = Twitter + QuickSilver + iChat Says:

    [...] First, check out, it’s a little status board. I found a script over on that lets you update your twitter account from quicksilver. [...]

  11. Matt Says:

    I just added to your great script so it also pushes the change to your iChat Status.

    You can see it here.

    Thanks for sharing.

  12. Adam Says:

    Most excellent. Thanks!

  13. gp Says:

    Twitter Quicksilver…

  14. Twitter for Colloquy » BabylonDreams Says:

    [...] Coda Hale created a Quicksilver action to post conveniently to Twitter. Ted Leung thought it would be nice to have Growl notifications in the mix and Matt Matteson thought it needed a bit more sparkle by adding iChat support. Well, now I add two more options to the mix. [...]

  15. Tilman Says:

    Just came here over a shared twitter-friend and nearly fell off my chair when I read QS and Twitter in the same post heading. Thanks a bundle. Brightens up my day…

  16. soeren says » Blog Archive » Quicksilver + Twitter + iChat Status Says:

    [...] Specifically, he preferred to use Quicksilver instead, and pointed me to an AppleScript that already gets the Twitter part done. [...]

  17. » Twazer Says:

    [...] is a neat applescript based on Tweet, that not only gives a Growl notification and changes the iChat status but also adds the current [...]

  18. Joe Carroll Says:

    Thanks a million for this great little script Coda. I’d like to contribute one to go with it.

    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. Anyone who wants to add such functionality to Quicksilver can get the script from my post on the Quicksilver forums here:

    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 on that process :-) Now I simply activate Quicksilver, press period to enter my text, then tab and 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 to send my update.

    Now Quicksilver provides my favourite way to update Twitter too!

  19. Kid666 Blog » Blog Archive » Twitter, Quicksilver, Keychain and the phantom credit snatcher! Says:

    [...] a little searching it turns out Coda Hale has already done a perfect job of integrating Twitter and Quicksilver using Applescript. Well done him, but what a git for stealing my [...]

  20. Twitter | myMacBUZZ Says:

    [...] favourite way though is to use Quicksilver (you can tell I’m a real Quicksilver fan now). The original Applescript was written by Coda Hale. Then Ted Leung modified it and added Growl support so that Quicksilver [...]

  21. Omar Says:

    Awesome, thanks!

    In preferences you can create a trigger that goes straight to “Command Window in Text Mode” it just takes one step out of that process. :)

  22. Circle Six Blog » Blog Archive » Quicksilver, Twitter, and Wordcount Says:

    [...] is a quick hack of the Tweet script by Coda Hale. It adds a quick call to the Unix command wc (wordcount) that checks to make [...]

  23. xeophin.tapestry » Blog Archive » Wokked / 2007-02-23 Says:

    [...] Twitter and Adium, combine Twitter and Quicksilver (or try this, if your more into Ruby) – oh my, utterly geeky, utterly fun, utterly cool [...]

  24. Twitterific at Seb Payne Says:

    [...] to Twitter can be done through IM, Mobile Phone, Web, Quicksilver and clients. The most popular client I know of (and use) is Twitterific. It’s free from Icon [...]

  25. Tilman Says:

    Thanks for this script! I changed it to twitter the currently playing iTunes track. Check

  26. Kyle Mulka Says:

    Best way to Twitter, period.

  27. Fnord. Says:

    [...] way to get and send updates. For sending updates, install and use the Applescript+Quicksilver from this page. That allows superfast updates with no client [...]

  28. ~the missing link~ » Blog Archive » Twitter Says:

    [...] Erwähnen für den Mac möchte ich twitteriffic und die Möglichkeit mittels Quicksilver zu Posten. Ich finds recht Praktisch weils einfach nicht so lange dauert wie ein Blog eintrag. Wie ihr [...]

  29. Takashi Yoshida Says:

    It’s an awesome script. I like it! But I’m seeing “The variable nothing is not defined” error in the console.

    I also didn’t see this variable in your script. How can I fix it?

  30. Twitter, Twitterific, Tweeter and me « Shtikl Says:

    [...] use Twitter via Twitteriffic and Tweeter (which is Twitter via Quicksilver).  And with every single post I ask myself: Is Twitter nothing [...]

  31. …You should be twittering? at Didn’t You Hear… Says:

    [...] want more? Well, if you’re on the Mac, you’re in luck. Coda Hale put together a great piece of script that lets you tweet using Quicksilver, and then Ted Leung [...]

  32. Obfuscated Syntax » Blog Archive » Testing this twitter stuff! Says:

    [...] I just started using Tweet! Which is an amazingly simple way to combine the power of Quicksilver with Twitter. Share and [...]

  33. Christopher Kinniburgh Says:

    I had one problem with a quick fix: I absolutely had to add an icon to the script (I ended up just throwing the twitteriffic icon) but that would turn this little utility into something that is perfect.

  34. » Blog Archive » Twitter. Says:

    [...] File under “neat but useless”: I made an account on Twitter, one of the recent crop of shiny, colorful, user-driven, Mozilla-compatible, feed-readable, whitespace-lovin’ Internet applications — what people like to call Web 2.0. As far as I can tell, Twitter basically a glorified away message service. You can have people’s updates sent to an IM screenname or a cell phone, and you can update your own message remotely through any number of protocols and programs. My favorite is this Quicksilver script. [...]

  35. Lacking Credibility » Archives » Twitter + Quicksilver + Growl = Tweet+Growl Says:

    [...] 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 [...]

  36. nerd-notes » Twitter: another fun web2.0 timesuck Says:

    [...] client for the Mac called Twitterific, which I have found to be fairly crashorific. Coda Hale put together an AppleScript designed for use with QuickSilver that makes the process of updating Easy And Fun, at least for us [...]

  37. links for 2007-03-23 | [permanent meta] » Blog Archive Says:

    [...] Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale Posting to Twitter with Quicksilver: “Cmd+Space, period, type your message, tab, tw, enter.” (tags: quicksilver twitter productivity procrastination) [...]

  38. 43f Links for Saturday, March 24th | 43 Folders Says:

    [...] support changes the game for this thing. (thanks, Scott Cropper) (tagged: hacks appletv mbwideas) Tweet = Twitter + Quicksilver Send Twitter updates from Quicksilver (via: deli/GreySheepDuo) (tagged: osx quicksilver [...]

  39. Says:

    I’m All A Twitter…

    There’s a new web application that making all the rounds. It’s getting a lot of hype and some even say it’s “exploded”, meaning it’s the cool app that all the hip kids are using. Well, I’m not one of those kids, but after listening to a bunch of…

  40. Matthew Hall Says:

    If anyone is having trouble with the AppleScript timing out when it checks the keychain, there’s a command line way of doing things - I’ve just got this running (and on Panther as well.)

  41. Niklas’ blog » Blog Archive » My bookmarks created during the past week Says:

    [...] Tweet = Twitter + Quicksilver — The upshot? Cmd+Space, period, type your message, tab, tw, enter. Tagged as: [twitter quicksilver osx mac applescript] [...]

  42. Dodeci » Tweet = Twitter + Quicksilver Says:

    [...] Combine Twitter, Quicksilver, and Growl notifications with iChat Filed under: Resources  [...]

  43. Mac Finds » Blog Archive » Mac Finds Podcast 1: Twitter Apps Says:

    [...] Notes: Twitter Twitterrific Twitterrific Beta TwitterPost Tweet (Install instructions [...]

  44. lilmikey819 Says:

    Great addition! Thanks.

  45. Julian Schrader Says:

    Works great—thanks!

  46. iQuickTwitter - My Quicksilver + Twitter + iChat + Growl Hack » Graham English's Integral Conversations Says:

    [...] first AppleScript I found for the job was here. But as best as I can tell, the Keychain Access was a major bottleneck. Then I found an option that [...]

  47. Think Wasabi » Blog Archive » Quicksilver: postear en Twitter Says:

    [...] para Twitter, aunque es posible que lo haya. De modo que con un poco de Google he encontrado este post que explica cómo hacerlo de forma [...]

  48. breun Says:

    I modified Ted Leung’s Growlified Tweet (which is based on this script). My version checks message length before sending. Check it out!

  49. no sense of place :: links for 2007-03-25 Says:

    [...] Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale Updating twitter from Quicksilver: Cmd+Space, period, type your message, tab, tw, enter (tags: quicksilver twitter hacks apple script) [...]

  50. | Twitter via Quicksilver with Growl integration Says:

    [...] script that operates along with Quicksilver (running Quicksilver is mandatory for Apple users ). Tweet = Twitter + Quicksilver receives text from Quicksilver, obtains your twitter login from the Keychain (if you’re using [...]

  51. DavidK Says:

    Nice. Im not sure what Twitter is for, but I’m using it, and Quicksilver is the perfect way to interact with it.

  52. » Blog Archive » links for 2007-04-24 Says:

    [...] Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale (tags: mac osx software Tweet twitter quicksilver AppleScript) [...]

  53. OS X Hacker » Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale Says:

    [...] Tweet | Coda Hale decided to hack together a script to make Quicksilver and Twitter play nicely together. [...]

  54. John Ryan Says:

    Nice one. Thanks for that.

  55. Twitter, Growl, Quicksilver and Adium at tin-men Says:

    [...] install it, follow the instructions over at the posting for the original Tweet, but replace the script in step one with [...]

  56. Suave’s Blog » » use Twitter in QuickSilver Says:

    [...] Tweet = Twitter + Quicksilver [...]

  57. Sam Ryan Says:

    Haha nice Lock Stock reference in the chat… Chill, Winston!

  58. Klein Says:

    Update for Pownce & Twitter at the same time?

  59. soeren says » Blog Archive » Updating your Adium, Facebook, Skype and Twitter status all at once Says:

    [...] Twitter, Quicksilver and Adium aspects are based on this little script as well as this one. Finally, the Skype part is easy to add once you understand their API a [...]

  60. Michael Janssen Says:

    I had to change:
    set twitter_key to first Internet key of current keychain whose server is ""
    set twitter_key to first generic key of current keychain whose name is "Twitterrific"
    in order to get it to work, because my twitter key is just a regular aplication password.

  61. Le Blog de Santiago Lema (Jacques) » Blog Archive » InTwittion masculine Says:

    [...] pour ceux qui ont pas de vie, mais un mac et envie de twitter plus vite que leur ombre, il y Tweet, un petit AppleScript à installer pour pouvoir twitter en 3 secondes à travers [...]

  62. Daan Kortenbach Says:

    Add the code below to the script if you want Growl support. Have fun :)

    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 ""
    end tell
    end growlRegister

    -- Notify using Growl
    -- Example: growlNotify("This is an Alert","This is a test of the Growl Alert System")
    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

  63. Abe Says:

    This is sweet. Thank you.

  64. Manage Your Tasks at Remember the Milk with Quicksilver « Bitstream Says:

    [...] the Script Download the script from Baron VC or copy and paste it from the blog of its originator, codahale. Put the script into the ~LibraryApplication SupportQuicksilverActions folder. If the folder [...]

  65. The Republic of Geektronica » Blog Archive » Coming Soon: Says:

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

  66. ThePete Says:

    Thanks for this, Coda! You rock!

    Thanks also to Michael Janssen whose (who’s?) script tweak made this work for me. My day just got a bit brighter!

  67. Sam Jones Says:

    Very cool! Thank you.

  68. Updates From Sam Jones » Blog Archive » Facebook Needs to Open Up for Real Says:

    [...] has already built something for this. A quick Google search yielded a great script for Quicksilver here and the improved version with iChat support here. [...]

  69. Twitter: Clientes para MacOSX « sixhat pirate parts Says:

    [...] Tweet: Twitter + QuickSilver. Para os Die Hard fans do QS esta solução pode ser o que faltava para aderirem ao Twitter. [...]

  70. gizo Says:

    Thank you thank you thank you.
    And to Michael Janssen too. Yay!

  71. Financial Aid Podcast Daily Free MP3 Internet Radio » FAP557: Free Stuff Monday, Damning Lender Report from the Senate, Homeland Security Money, PAB, Uncle Seth Says:

    [...] Stuff Monday + Stick Em Up + Quicksilver tutorial for Google Calendar + Quicksilver tutorial for Twitter + Google Gas Gadget + Expensr + PodCamp Europe Gift [...]

  72. Mb. : Matt Balara thinking about design » Blog Archive » Linkbag of Constant Noise Says:

    [...] and are driven to tell everyone what you’re doing as you you’re doing it, check out Tweet, a twitter plugin for Quicksilver. Installation’s a little more complicated than for most [...]

  73. How I use Quicksilver II: Scripts | jwdunn Says:

    [...] love Twitter. Now that Twitterriffic is adware, Coda Hale’s Tweet action for Quicksilver is undoubtedly the slickest way to post updates to Twitter. It will accept text input directly from [...]

  74. Remember The Milk Quicksilver plugin « Good things Says:

    [...] been sending my thoughts to Remember The Milk with Quicksilver via Twitter with the help of Tweet until now, but that was fairly basic and seemed like an overly-convoluted path for the information [...]

  75. CP Says:

    Works perfectly. Thanks!


  76. Brendan Baldwin Dot Com » Blog Archive » links for 2008-01-03 Says:

    [...] Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale Post to twitter from Quicksilver with this simple 3 step setup. (tags: applescript quicksilver twitter) [...]

  77. » Blog Archive » My first 48 hours with Twitter Says:

    [...] devices supporting twitter. I have Twitterrific to read messages, and can easily send them through Quicksilver. My tweets are displayed on the right of my blog using a simple wordpress [...]

  78. » Blog Archive » Mine Mac-applikasjonar Says:

    [...] kan óg bli brukt til alt mogeleg anna rart, frå å kontrollere Twitter, til å bli mint på å sjekke omnen om ti [...]

  79. The Tech Pipe- Beta » Blog Archive » Quicksilver and Twitter, the perfect pair. Says:

    [...] using terms from It is from here. Now this is fairly simple to [...]

  80. winson Says:

    I like this cuttie goodie!!

  81. 96iantSteps · Quicksilver script for Twitter Says:

    [...] It’s all nicely described here. [...]

  82. Diego Says:

    Thanks for the script. Just a note, you may want to encode the tweet string. Things like an ampersand break up the tweet and cut it off at the &. Use something like this

  83. Paul Says:

    Works great. But what if you have multiple Twitter accounts on your Keychain? It will pick the first one alphabetically. Is there a workaround for that?

  84. paynito Says:

    I love this. I tweet all the time now, open apple - period baby. Thanks for a great script. I use this more than file tagging with QS.

  85. The Walrus Blogs » The American Dream » Web 2.0 Museum Says:

    [...] just made a Tweet inquiry and, thank goodness, they’ve scraped the sign out of the window. I need to make sure none [...]

  86. James Carlos » Blog Archive » Twitter + Quicksilver Says:

    [...] nuff said. [...]

  87. links for 2008-04-26 « Copula’s Weblog Says:

    [...] Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale quicksilver twitter applescript (tags: quicksilver twitter applescript) [...]

  88. Quote by Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale | Oliver's Stuff Says:

    [...] Tweet = Twitter + Quicksilver | Archives | codablog | Coda Hale [...]

  89. Use Quicksilver to Twitter on Blog24 Says:

    [...] quick tutorial on how to use Quicksilver to write tweets to your Twitter more | digg story Last 5 posts in GalleryStatus - April 22nd, 2008Google’s April Fool - April 1st, [...]

  90. Tweet = Twitter + Quicksilver « Twitter Apps Says:

    [...] Apps « Who Should I Follow? Tweet = Twitter + Quicksilver May 3, 2008 Tweet = Twitter + Quicksilver - tutorial from on how to Tweet using Quicksilver [...]

  91. Luke Says:

    I can’t get this going at all. It’s a problem with my QS installation I’m sure but no Quicksilver folder was created within Library/Application Support. I have created this file myself but basically I can’t get Tweet.scpt to turn up in the action pane. Any ideas?

  92. 伟大的QuickSilver | Trash Paper 废纸篓 Says:

    [...] 还不支持),甚至最近火得乱七八糟的 Twitter,都有人写了脚本支持用 Quicksilver 发送。在及漂亮的 About [...]

  93. Ricardo Niederberger Cabral Says:

    awesome! But it’s not escaping “+” correctly :(

  94. Jasper Says:

    damn you for making quicksilver even more essential!

  95. Rob Record Says:


    You should be using the Library from your home folder, not the root.

    Re-install QS if you still have no luck.

  96. Corgi Says:

    Wish I’d known about this before. Kicks the crap out of doing it from Twitterific! Thanks!

  97. anne Says:

    Love it!

  98. Twitter + Quicksilver = Sweet. | Thoughts and Ideas Says:

    [...] these instructions I was able to set up a way to Twitter from Quicksilver quickly and easily, check out the video [...]