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

Re: [Clip] Open, Edit, and Save a Template

Expand Messages
  • Jody
    Hi Julio, ... reemplace I assume means remove or replace. ;) One or both of these should work. Try on some test files first. I hope they speak themselves.
    Message 1 of 2 , Oct 26, 2001
    • 0 Attachment
      Hi Julio,

      >Hello, I need to build a clip that opens a template, reemplace
      >some especified text and then saves the file. Can anyone help me
      >with that?

      "reemplace" I assume means remove or replace. ;) One or both of
      these should work. Try on some test files first. I hope they
      speak themselves.

      <--- Copy below this line --->
      H=Edit Template I
      ; Last updated 10-26-2001, Sojourner@..., jody
      ; Long line till empty line
      ^!SetScreenUpdate Off
      ^!Set %Path%=^?{(T=O)&Path to template=^$GetTemplatePath$}; %Find%=^?{&Find what}; %Replace%=^?{&Replace with}; %CloseSave%=^?{Automatically save and close=Yes^=Close Save|_No}

      ^!Toolbar New Document
      ^!InsertFile "^%Path%"
      ^!Replace "^%Find%" >> "^%Replace%" TWA
      ^!IfFalse ^%CloseSave% End
      ; Remove the space"^%Path%" if you want to rename the file
      ^!Save:As "^%Path%"


      H=Edit Template II
      ; Last updated 10-26-2001, Sojourner@..., jody
      ; Long line till empty line
      ^!Set %Path%=^?{(T=O)&Path to template=^$GetTemplatePath$}; %Find%=^?{&Find what}; %Replace%=^?{&Replace with}; %CloseSave%=^?{Automatically save and close=Yes^=Close Save|_No}

      ^!Keyboard Alt+F T E &200 #^%Path%# Enter
      ^!Replace "^%Find%" >> "^%Replace%" TWA
      ^!IfFalse ^%CloseSave% End
      ; Replace the next line with ^!Save:As if you want to rename the file
      ^!Close Save

      <--- Copy above this line, right --->
      <--- click over a Library, and --->
      <--- choose "Add from Clipboard" --->

      Happy Clip'n!
      Jody

      http://www.notetab.net

      Subscribe, UnSubscribe, Options
      mailto:Ntb-Clips-Subscribe@yahoogroups.com
      mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
      http://groups.yahoo.com/group/ntb-clips
    Your message has been successfully submitted and would be delivered to recipients shortly.