Hi there. I’m trying to write a simple OmniJS automation that will take the current outline and output it as a Fountain file – sort of a Markdown variant aimed at screenwriting. I have an action that actually creates the Fountain text correctly (at least, I think I do)…but I can’t figure out what to do with it at that point. The “OmniOutliner: Document Export” page on omni-automation.com doesn’t seem to be helpful for this use case, since I’m not exporting a file type that OO can natively export. The “FileWrappers” and “FileType” doc pages are frankly a little mystifying – and in some cases simply don’t work (i.e., “Creating a FileType Instance” tells you to use
fType = new FileType("public.plain-text"), but that gives you a “TypeError: CallbackObject is not a constructor” error on both macOS and iOS).