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

Re: [Clip] Switch to new doc with same content

Expand Messages
  • anachromat
    ... Try replacing the middle two lines with: ^!TextToFile ^%NewFile% ^$GetText$ Here are the docs for GetText: Returns the whole text contained in the
    Message 1 of 9 , Jun 1, 2012
      --- In ntb-clips@yahoogroups.com, "John Shotsky" <jshotsky@...> wrote:
      >
      > I found a solution that seems to work. Not sure if it's
      > the most straightforward way to do it, but it works.
      > In case anyone else needs something like that:
      > ^!Set %NewFile%=^$GetDocName$.txt
      > ^!Select ALL
      > ^!TextToFile "^%NewFile%" ^$GetSelection$
      > ^!Open "^%NewFile%"

      Try replacing the middle two lines with:

      ^!TextToFile "^%NewFile%" ^$GetText$

      Here are the docs for GetText: "Returns the whole text contained in the active document."
    Your message has been successfully submitted and would be delivered to recipients shortly.