Jun 2006 04

Ruby command line API script

Version: newTodo.rb
File:
Subversion URL:
Damien Cirotteau has written a nice Ruby script to add a new next action from the command line. He writes:



I have set up a small ruby script to add a Next Action in tracks. All the parameters (user name, token,...) are written in hard in the script and configurable from the command line. Instructions are in the script or run “newTodo.rb -h”. I use it mainly to add todos from the command line and from my Mail application.


In the process of reorganizing my (digital) life I have also changed my mail application from Mutt to Sylpheed. Sylpheed lets you define custom actions. One of mine that I apply to a message for which I am waiting a reply is shown below. Context 6 is my waiting for context:



newTodo -c 6 "Waiting from`cat %f|grep From:|sed -e 's/<sup>From://'` about `cat %f|grep Subject:|sed -e 's/</sup>Subject://'`" [0]

Thanks, Damien!

0 Comments

Name:

Email (not shown on page):

Location (optional):

URL:

Remember my personal information

Notify me of follow-up comments?

Please enter the word you see in the image below: