The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Draft Script: Save as FoldingText Thread Tools Search this Thread Display Modes
Here's a first sketch of a script for saving from OmniOutliner3 to the format of the FoldingText plain text outliner.

From FoldingText, one can apply CSS stylesheets with Marked for further migration to well-formatted HTML, PDF etc.

FoldingText adopts a number of the Markdown conventions, so there is an option (adjustable in the properties at the start of the script) for flagging the top N levels of an OmniOutliner outline as Markdown headers (starting with a hash).

FoldingText also allows us to flag particular outline nodes as 'Code', 'Quotation' etc. In case you want to do this in OmniOutliner before exporting, I've included an additional script which creates a popup column in OO3, which you can use to flag the type of particular nodes in your outline.

(This should really be written as a a Save As plugin (XSL template), but for the moment this first Applescript sketch does at least make it possible to experiment with the basic approach. Bug reports and suggestions welcome).

--
Attached Files
File Type: zip SaveAsFoldingText-018.zip (57.3 KB, 211 views)

Last edited by RobTrew; 2012-10-31 at 04:56 PM.. Reason: Ver 0.18 Compatible with Keyboard Maestro, and aims to translate ***BoldItalic*** as well as **bold** & *Italic/Oblique* fonts in OO3 topic text & notes into MD emphases
 
Updated (above) to warn and exit if the .oo3 file itself has not yet been saved.
 
Updated again (above, 016) to look for uses of **bold** and *italic/oblique* fonts in OO3 rich text and translate these into the Markdown emphasis conventions used by FoldingText.

This behaviour can be disabled by editing the following two properties, near the the top of the script, to false:

Code:
property pblnTopicEmphasis : true
property pblnNoteEmphasis : true
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script: Pasting from FoldingText Markdown to oo3 nesting and columns RobTrew OmniOutliner 3 for Mac 5 2014-05-11 11:34 AM
Script: FoldingText to OmniFocus RobTrew OmniFocus Extras 47 2013-01-06 08:03 AM
Script: Export from a FoldingText outline to OmniOutliner RobTrew OmniOutliner 3 for Mac 0 2012-10-04 01:46 PM
Script: Export from FoldingText outline to OmniGraffle diagram RobTrew OmniGraffle General 0 2012-10-04 01:44 PM
Book Draft Abby OmniOutliner 3 for Mac 1 2009-03-15 12:47 PM


All times are GMT -8. The time now is 04:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.