On this Page

    Command Options - RunScript

    RunScript has the standard DocOrigin command line options as described in the Common Command Line Options section of this document. In particular, it requires that -logfile and -message be defined either explicitly or in one of the default PRM files. You may also define any command line options of your own and retrieve their value within a script. For Example:

    RunScript -script yourscript.wjs -file yourfilename.txt

    Within your script, you can fetch the value of -file using:

    var file = _job.command.file; //  set to "yourfilename.txt"