The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniOutliner 3 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=9)
-   -   OmniOutliner or OPML––> WikiText (http://forums.omnigroup.com/showthread.php?t=20569)

johnrover 2011-03-31 11:51 AM

OmniOutliner or OPML––> WikiText
 
Hello Folks

I'm in very desperate need of a way to get OmniOutliner files to wikitext.


I found this little quick and dirty script, but it only converts to a list (the asterisk part) ignoring the heading functions:
[url]http://michael-mccracken.net/2007/01/quick-n-dirty-omnioutliner-to-mediawiki-applescript/[/url]



I need to be able to adjust where the heading cuttoff is, ie:

Heading Cuttof at 0:
*outline level 1 becomes bullet level 1
**outline level 2 becomes bullet level 2
***outline level 3 becomes bullet level 3
****outline level 4 becomes bullet level 4
etc

Heading Cuttoff at 2:
=outline level 1 becomes heading level =
==outline level 2 becomes heading level 2==
*outline level 3 becomes bullet level 1
**outline level 4 becomes bullet level 2
***outline level 5 becomes bullet level 3
****outline level 6 becomes bullet level 4
etc


Heading Cuttoff at 4:
=outline level 1 becomes heading level =
==outline level 2 becomes heading level 2==
===outline level 3 becomes heading level 3===
====outline level 4 becomes heading level 4====
*outline level 5 becomes bullet level 1
**outline level 6 becomes bullet level 2
***outline level 7 becomes bullet level 3
****outline level 8 becomes bullet level 4
etc



I'm an applescript noob and don't even know where to start. Any suggestions?


All times are GMT -8. The time now is 11:33 PM.

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