This is an AppleScript script that was created in response to a bounty on the official forums for Hog Bay Software's TaskPaper. It parses a TaskPaper document into AppleScript data structures suitable for programmatic manipulation. When you are done manipulating the data, the script can reassemble the data into a TaskPaper document.
Includes a usage example.
This code is public domain, despite what the Google Code license says. It didn't offer me that choice when I created the project, but that is the true license. I chose the BSD license as, in my opinion, it is among the most liberal of licenses and closest to public domain. Still, this code is not licensed under the BSD license and is, in fact, public domain.