GeekTool and OmniFocus export [UPDATE]

As of OmniFocus ver. 1.8, it can be written much more simply, without recursion. Adopting WhPalmer4’s improvement to allow for special characters when writing the file, the whole script could now be abbreviated to something like…