I love working in OmniOutliner for my teaching lesson plans. I have to submit lesson plans through a Web site which provides very limited styling (one font face, one size, no colors, etc.). I don’t want to simply export plaintext because having some styling is helpful when my lesson plans get reviewed.
I’ve found that MS Word export gets closest to the export format I want. However, although OmniOutliner allows for intricate padding options when viewing, they don’t come through in the export. If I had a blank line between each of the rows on my outline, my need to reformat in the Web site form after export would be greatly minimized.
I searched but didn’t find a solution, so I cobbled something together from a few scripts that could be found (from much smarter folks). It works for the most part, although I am sure it could be improved. For posterity:
tell application "OmniOutliner" set oDoc to front document expandAll set oSeln to every row of oDoc repeat with oRow in oSeln tell oRow make new row of oRow set expanded to true end tell end repeat end tell
The following script which the community provided will then delete the empty rows:
tell front document of application "OmniOutliner" delete (rows whose topic is "") end tell