todo.sh and Quicksilver


By hyrcan - Posted on 15 April 2008

Quick note for those of you in the same boat as me. I love todotxt, and quicksilver looked pretty cool, but it never really seemed to work well together. Which is odd because everyone seemed to be in on how to make them work together except me. Well I looked around and found there was an applescript that would make them friends but alas I could not find this magical script.

Now that I had an idea where to start I decided to go it on my own and dive into the world of applescript. I know.... uh...applescript. It's not C or anything... but if you've never looked at the code it might as well be in gibberish for all you know.

Applescript I found has pretty simple syntax, on this, do that, tell the application to.... of course... I didn't know what I had to work with.

I eventually figured it out and came up with this applescript that does the trick.


using terms from application "Quicksilver"
on process text ThisClipping
do shell script "~/.bin/todo.sh " & ThisClipping
tell application Quicksilver to hide
end process text
end using terms from

Of course you'll need to put in the right path to the todo.sh, but you get the idea. Drop this Applescript file into the QuickSilver actions folder and your set.

Now it's Command+Space (or whatever) . "a new task p:project @work" and poof there it is. Now I know what you're saying, but you could just use the append to... and have the same effect. While that is true append to doesn't allow you to use the DO, PRI, or other special commands, this does. I may work on the script a bit more and figure out how to get the output from ls and lsp, etc... to showup. But for now this will do nicely. Besides that's what geektool is for right?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <img>
  • Lines and paragraphs break automatically.
  • You may use [inline:xx] tags to display uploaded files or images inline.

More information about formatting options

This blog uses the CommentLuv Drupal plugin which will try and parse your sites feed and display a link to your last post, please be patient while it tries to find it for you.