8.1

Table Of Contents
deprecated: If this value is true, this field has been deprecated, should not be used,
is not supported, and will be removed in a future version of QuarkXPress Server.
cdata: If this value is true, the value of this field is to be wrapped in a cdata section
before being sent to QuarkXPress Server. This is valid only if the field is "value", that
is value of the element in modifier XML.
<others>: If any other attributes are defined, a class field with the name as
<name>_<others> is created, and you can write your own implementation for it.
Scripting support
You can write server-side scripts for QuarkXPress Server Manager. These scripts are actually
clients that run in the same context as QuarkXPress Server Manager in Tomcat, but do not
have the overhead of SOAP.
Although you can write scripts with almost any script-editing application, you might want
to use the QuarkXPress Server Manager Scripting Environment, which ships with
QuarkXPress Server Manager. You can use this application to write scripts, run scripts
manually, and schedule scripts to start and end at specific times or until specific conditions
are met.
QuarkXPress Server Manager also includes a number of sample scripts and libraries for
reference. The libraries include ready-to-use functions. The samples show you how to use
the libraries, and also how to write scripts without using those libraries.
When writing scripts, you can directly access the functions named print, readUrl,
runCommand, spawn, sync, load, debug, info, warn, error, and exception. Launch
QuarkXPress Server Manager Scripting Environment and open the sample scripts to see
how these functions are used.
By default, the scripting environment uses the file system to store the scripts. However, if
the need arises, you can write a custom implementation of the storage provider by
implementing the QScriptStorage interface and configuring the Spring configuration
file, "ManagerContainerConfig.xml." Scripts you save in this way can also be executed
remotely using Web services; for more information, see "QManagerScriptingSvc."
Keep document open (sessions)
In early versions of QuarkXPress Server Manager, the software opened a QuarkXPress
project, performed a function, and then closed the project. To avoid the delays involved
in repeatedly opening and closing a QuarkXPress project, QuarkXPress Server Manager
can now keep QuarkXPress projects open until they need to be closed.
To keep projects open for a set period of time, create a session and then open one or more
projects in that session. You can specify a timeout interval while creating the session. If
the session is not used during the interval, all open projects in that session are closed.
An open project can be modified and saved at any time during the process. An open project
can even be saved at another location relative to the QuarkXPress Server document pool.
You can also create a new project and keep it open.
QXP SERVER 8.1 WEB INTEGRATION GUIDE | 33
GETTING STARTED