IR Framework

GlobalStartup.OutputScripts Method

The OutputScripts method exports the contents of the scripts in the ActiveDocument to a text file.
object.OutputScripts (OutputFileName, Display)

Arguments

object
Required. Always the name of a GlobalStartup object.


OutputFileName
Required. The path and file name of the file to write the scripts to.


Display
Optional. Boolean indicating whether or not to display the scripts in Notepad. Default is false.



Remarks

The file format is very specific. It is best to begin by creating the file using the InputScripts method.
The following example illustrates the use of the OutputScripts method.

//	Create the name of the text file to export to.
//	In this case, we make the name of the script file match the name of the
//	Interactive Reporting file.  We also place it in the same folder.
var strTemp = ActiveDocument.Path.reverse();
strTemp = strTemp.substr(strTemp.indexOf(".")).reverse() + "js";

//	Export the document's scripts to the text file.
//	...and don't popup Notepad.
ActiveDocument.wsdot_GlobalStartup.OutputScripts(strTemp, false);


Applies To:

GlobalStartup Object



Requirements

The WSDOT Custom Scripts from the script repository must be loaded into the document.