8.5

Table Of Contents
QuarkXPress Server Manager Scripting
Environment
A script is a set of commands written in an interpreted language to automate certain
application tasks. You can use server-side scripts with QuarkXPress Server Manager. The
QuarkXPress Server Manager Scripting Environment application allows you to manage
automated scripts that perform actions without requiring another application or user
intervention. Script-writers can access almost all QuarkXPress Server Manager services
through the QuarkXPress Server Manager Scripting Environment interface.
Scripts can be initiated manually or on a predefined schedule. The QuarkXPress Server
Manager installation includes sample scripts, including four comment-only scripts ("vars,"
"intro," and "funcs") that provide valuable information about writing scripts for
QuarkXPress Server Manager. You can also embed scripts in other scripts.
The QuarkXPress Server Manager server supports JavaScript and includes the JSLint
syntax checker. However, you can write scripts in any language that is supported by
Apache® Bean Scripting Framework (BSF), and you can plug any scripting engine into the
Bean Scripting Framework.
When writing scripts, you can directly access the following functions: print, readUrl,
runCommand, spawn, sync, load, debug, info, warn, error, and exception.
Scripting Environment configuration
The QuarkXPress Manager application folder contains a "Client" folder and/or a "Server"
folder. The QuarkXPress Server Manager Scripting Environment application is in the
"Client" folder. A folder named "scripts" in the "Server" folder contains some sample scripts.
A GUIDE TO QUARKXPRESS SERVER 8.5 | 111
QUARKXPRESS SERVER MANAGER SCRIPTING ENVIRONMENT