--- In firstname.lastname@example.org
, "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."