Script properties (fileName etc)

Parent Previous Next

TwScript:   TW.script.propertyName


Returns a string.


propertyNames—


.fileName   .title   .description   .author   .version


These are as stated for the property names,  for the script,  

(and not for the TeXworks document that is being edited).


These properties are read only, there is no persistence for any changes attempted in script.


Note: TW.script.fileName  is more reliable than   __FILE__


TW.script .fileName


Not for the TeXworks document that is being edited, (for that see TW.target.fileName).


It is the path and file name for the actual script that is reading the property —


/path/scriptName.js


c:/texworks/myconfig/scripts/text/scriptName.js



.title through to .version are set by the script author in the header of the script.


// TeXworksScript

// Title:  Shortcuts for Latex text

// Description: User abbreviations for text

// Author:  Paul A Norman

// Version: 0.1


TW.script.title

TW.script.description

TW.script.author

TW.script.version

Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation