Global constants

Global constants are declared on the Constants Tab of Services in the ITP/Server Administrator. These settings should be used to define settings that apply to this specific ITP/Server setup. Some examples:

• Directory paths

• Printer names

• Names of remote servers

• User names and passwords for remote servers

Every script that is run on this server can access these settings.

Its value is the (constant) value as defined on the Constants tab.

Note

If you define a constant in your script with the same name as a global constant the script compiler will give an error message.

The following five global constants provide defaults for internal commands:

Constant

Function / Value

Used by Command

WFWPrinter

Default printer driver when printing Microsoft Word files

PrintDocument

PDFPrinter

Default printer driver when printing PDF files

PrintDocument

OOoPrinter

Default printer driver when printing

PrintDocument

WFWFormat

Default save format when converting Microsoft Word files

ConvertDocument

OOoFormat

Default save format when converting OpenOffice.org writer files

ConvertDocument

Global constants are always assumed to be of type Text.