556Re: [NTS] Redirecting GAWK Output
- May 14, 2012--- In email@example.com, "flo.gehrke" <flo.gehrke@...> wrote:
> ;[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)$
> Regards,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%")$
- << Previous post in topic Next post in topic >>