Want to copy completed as Taskpaper & delete

Hey Forum,

I use Omnifocus for many many things. Some are critical to my work, and some are grocery list items. Lots of grocery list items.

When I want to analyze tasks I’ve completed for work, the grocery stuff gets in the way. What I would like is to create a script that can automatically copy completed grocery items in Taskpaper format and then delete them from my OF database. (Then I can save them to a text file because…hey, it’s data)

I just don’t have time to write such a script from scratch. If any of you can point me to a script (Apple or Java) that comes close to this functionality I can bring it the rest of the way home.

Thanks for your consideration!