Loading ...
Sorry, an error occurred while loading the content.
 

[Clip] Re: Outline to TreePad was [NTB] Using otl file format

Expand Messages
  • Kay Roath
    10/11/1999 1:22 PM Eric G.V. Fookes wrote ... Tobias happened to post that he had a Perl otl/TreePad converter at about the same time I needed something like
    Message 1 of 1 , Oct 14, 1999
      10/11/1999 1:22 PM Eric G.V. Fookes wrote

      > You can do as you like with the otl file format. There is
      > no copyright or patent on the file format <g>.

      Tobias happened to post that he had a Perl otl/TreePad
      converter at about the same time I needed something like
      that but I don't have Perl installed :( soooo.......

      This clip will convert an outline to a TreePad formatted
      document. It's not very fancy. Will end without comment if
      the current doc isn't an outline.

      <--- Copy below this line --->
      H=Outline-TreePad
      ; 10-14-99 Grandma Kay
      ^!If ^$IsOutlineDoc$=0 End
      ^!Set %otl%=^$GetDocIndex$
      ^!ToolBar New Document
      ^!Set %hjt%=^$GetDocIndex$
      ;---> long line <---
      ^!InsertText <hj-Treepad version 0.9>^p<node>^pOutline Import^p0^p<end node> 5P9i0s8y19Z
      ;;---> end long line <---
      ^!SetDocIndex ^%otl%
      ^!ShowHeadings False
      ^!KeyBoard Ctrl+Alt+Home
      ^!Set %end%=1

      :copy
      ^!ToolBar Select All
      ^!ToolBar Copy
      ^!Set %topic%=^$GetTopicName$
      ^!Set %temp%=^$GetSelection$
      ^!SetDocIndex ^%hjt%
      ;---> long line <---
      ^!InsertText ^p<node>^p^%topic%^p1^p^%temp%^p<end node> 5P9i0s8y19Z
      ;;---> end long line <---
      ^!SetDocIndex ^%otl%
      ^!Inc %end%
      ^!If ^%end% > ^$GetTopicCount$ Done
      ^!SetTopicIndex ^%end%
      ^!GoTo copy

      :Done
      ^!SetDocIndex ^%hjt%
      ;---> long line <---
      ^!Save As "^?{(T=D)Path=c:\Program Files\TreePad\}^?{TreePad Document name (no extention=otl-TreePad}.hjt"
      ;---> end long line <---
      ;<--- End copy above this line --->
      ;<--- Right click over the Clipbook and --->
      ;<--- choose "Add from Clipboard" --->
    Your message has been successfully submitted and would be delivered to recipients shortly.