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

556Re: [NTS] Redirecting GAWK Output

Expand Messages
  • mycroftj
    May 14, 2012
    • 0 Attachment
      --- In ntb-scripts@yahoogroups.com, "flo.gehrke" <flo.gehrke@...> wrote:
      >
      ---snip
      >
      > ;[path to exe]
      > ^!Set %lua%=
      > ;[path to the script]
      > ^!Set %script%=
      > ;[text to process, e.g. ^$GetSelection$, ^$GetClipboard$]
      > ^!Set %input%=
      > ^!InsertText ^$GetOutput(^%lua% "^%script%" "^%input%")$
      >
      > I tried to reproduce this with GAWK but I can't get it to work. For me, GAWK doesn't seem to accept the input from that ^%input% variable.
      >
      > It works when getting the input from a file:
      >
      > ^!Info ^$GetOutput(^$GetGawkExe$ -f ^$GetScriptPath$script.awk ^$GetDocumentPath$input.txt)$
      ---snip
      > Regards,
      > Flo
      >

      Did you ever get an answer to this part of this problem???
      I think the problem here is the missing '-f' in the InsertText statement. Looks like it should be
      ^!InsertText ^$GetOutput(^%lua% -f "^%script%" "^%input%")$

      Joy
    • Show all 16 messages in this topic