Writing a script
1
Overview
Installation
Getting started
Writing a script
Script reference
After you have identified a work flow in your business that you want to automate with the
Document Server, you need to create a script.
Scripts tell the Document Server what to do with the documents and images it receives. A
script is a sequential list of actions to perform, such as sending an e-mail message and then
printing an image as a PDF. Each action has parameters that specify how the action should
be performed (for example, who to send the e-mail message to or where to store the PDF
output.)
Creating a simple script with the ScriptWizard
Document Server scripts are similar to programs for computer languages. In order for the
Document Server to understand the script, it must be in a specific syntax. The ScriptWizard
automatically creates correct scripts for you. You can then edit these scripts to add
functionality. The basic steps in creating a script are:
1 Starting the ScriptWizard.
2 Selecting the actions to perform.
3 Specifying settings for each action in the script.
Note: Before you can create a script, there must be at least one Document Server visible in
the Document Server Admin window.
www.lexmark.com
Writing a script
Writing a script
2
Overview
Installation
Getting started
Writing a script
Script reference
Starting the ScriptWizard
Let’s create a sample script that prints a scanned document directly to a printer on the
network. This script has two actions. The first action converts the original document received
by the Document Server to PostScript. The second action prints the PostScript file to the
printer.
1 Click the New Script icon . The Introductory dialog lists the steps in creating a
script, these steps give an overview of the ScriptWizard.
2 Click Next.
3 Select the Document Server from the list you want to create a script for. This script
can be copied or moved to other servers later.
4 Click Next.
5 Enter the Script Name. For this example, use “FirstScript”.
Note: The Script Name appears on the MFP control panel when you create a profile.
6 Enter a Script Description. You have the option to enter a description to help you
remember what this particular script does. Type “Testing ScriptWizard”.
7 Click Next.
www.lexmark.com
Writing a script
Writing a script
3
Overview
Installation
Getting started
Writing a script
Script reference
8 Select the input for your script:
– Original Document. Usually a script acts on a submitted image, but some scripts
do not require a submitted image. For this example, click Yes.
– User Data. Some devices are unable to supply data from the user and therefore do
not support scripts that require user data. For this example, click No.
9 Click Next.
10 Choose which actions to perform in your script. You may choose more than one
action; you may also perform an action more than once. For this example, choose two
actions:
– Click ConvertToDocument, and then click Add.
– Click PrintIP and then click Add.
11 Click Next.
ConvertToDocument Settings
12 Select Input from the list of settings for ConvertToDocument. Select
“original.document” from the “use a variable or property” drop down menu. This
means the document originally sent to the server is used as the input for this action.
13 Select Format from the list of settings. Select “PostScript” from the “use value
specified” drop down menu. This is the format the original document is converted to.
www.lexmark.com
Writing a script