I’m learing applescript and I need to know if the following is achievable. I have a text file with 1000 lines, some of the lines start with:
'TODO
which is then Suffixed by what to do. For example:
blah, code, blah, blah
'TODO - Is this the best way to do this?
this and
that and the other
'TODO - Remove redundant code from the next query
Dim rsStuff
Set rsStuff = …
So what I want is a script that will take in a given text file and return the full contents of each line that start with 'TODO
It should be concatenated with the line number and the file name. The reason which I guess is fairly obvious is to markup a page of code with relevant tags such as TODO and HACK then have the script identify those tags and produce a list of things still to do or hacks to remove.
I’m struggling to make a decision on whether to add these lines to Omni Outline Pro which I use with the kGTD scripts and Quicksilver or, to Tracks which I think I would have to add manually. The advantage of Omni is the script could send each line to Quicksilver which would then pas it on to Omni through kGTD.
This sounds great but I have rather fallen in love with TRACKS lately as my GTD and task manager.
So I guess my two questions are can it be done either way (Omni or Tracks) and, is this something someone could quickly throw together for me to take a look at. I think I could get a lot of useful techniques out of seeing this code in action rather than trying to hack something together by trial an error over the next week.
Thanks from a veteran PC user that finally saw the light
Melvin