[texworks] Scripting: TW.result and TW.target.consoleOutput

Paul A Norman paul.a.norman at gmail.com
Thu Jun 23 08:34:15 CEST 2011


HI,

I have been reading through Issues, latexErrors,js and the Wiki,
trying to glean how these operate please.

var message = "<html><body><br />Progress Copy Completed: <br /><a
href=\"texworks:" + fileDetail + "\">" +  fileDetail + "</a><br
/></body></html>";

           TW.result = message;

TW.result can receive an array?

"texworks:" + filePath    ...

... as an <a href=   Causes a link to appear which when clicked opens
the document in Tw editor.


    TW.result = message;
In a hook script this automatically opens a console panel by the name
of the Script Title, but nothing seems to happen in stanadalones

Can this work from standalone scripts or only hooks at present?

And can   TW.result = "<html><body> ..... etc";

 ... be put in a function or must it be the last statement in a script?

Can TW.target.consoleOutput be assigned to from a script?

Many thanks,

Paul


More information about the texworks mailing list