8.5

Table Of Contents
Whether your execute a script manually, according to a schedule, or when triggered by an
event, the script is executed on the QuarkXPress Server Manager server computer.
Consequently, not all of the console output displays in QuarkXPress Server Manager
Scripting Environment result window. Only the final result or error returned by the script
execution displays in QuarkXPress Server Manager Scripting Environment.
When you call functions, you specify the function name and parameter values.
QuarkXPress Server Manager Scripting Environment includes on-demand syntax checking.
To include an existing script in a new script, use the load command. At runtime,
QuarkXPress Server Manager copies the target script into the new script. For an example
of how this works, see the sample scripts. Note that the syntax checker does not check the
syntax of a script that is included using the load command.
1
To write a new script, choose File > New > javascript.
A new tab displays in the QuarkXPress Server Manager Scripting Environment window,
and the script name displays in the Stored Scripts list on the left side of the window.
2
Choose File > Save to retain your work as you write your script.
Executing a script manually
To execute a script or method manually:
1
Display the script in the Script Content column.
2
To execute the script, click Execute .
3
To execute a particular method with specific parameters, click Execute Parameter . The
Execute Parameters dialog box displays. Enter a name in the Method name field, specify
parameters (you can add and delete parameters), and then click OK.
Execute Parameters dialog box
A GUIDE TO QUARKXPRESS SERVER 8.5 | 113
QUARKXPRESS SERVER MANAGER SCRIPTING ENVIRONMENT