Fast, but not with with the news you are hoping for :-)
I haven't written such a script no.
FoldingText → OF is the only route I have created, and that's partly because it has an unusually rich scripting interface, which provides very simple and powerful operations on nested text structures.