Lexmark Document Distributor User manual

Category
Software
Type
User manual
www.lexmark.com
Basic Script Writing
April 2002
Document Distributor
Edition: April 2002
The following paragraph does not apply to any country where such provisions are inconsistent with local
law: LEXMARK INTERNATIONAL, INC., PROVIDES THIS PUBLICATION “AS IS” WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of
express or implied warranties in certain transactions; therefore, this statement may not apply to you.
This publication could include technical inaccuracies or typographical errors. Changes are periodically made to
the information herein; these changes will be incorporated in later editions. Improvements or changes in the
products or the programs described may be made at any time.
Comments about this publication may be addressed to Lexmark International, Inc., Department F95/032-2, 740
West New Circle Road, Lexington, Kentucky 40550, U.S.A. In the United Kingdom and Eire, send to Lexmark
International Ltd., Marketing and Services Department, Westhorpe House, Westhorpe, Marlow Bucks SL7 3RQ.
Lexmark may use or distribute any of the information you supply in any way it believes appropriate without
incurring any obligation to you. You can purchase additional copies of publications related to this product by calling
1-800-553-9727. In the United Kingdom and Eire, call +44 (0)8704 440 044. In other countries, contact your point
of purchase.
References in this publication to products, programs, or services do not imply that the manufacturer intends to
make these available in all countries in which it operates. Any reference to a product, program, or service is not
intended to state or imply that only that product, program, or service may be used. Any functionally equivalent
product, program, or service that does not infringe any existing intellectual property right may be used instead.
Evaluation and verification of operation in conjunction with other products, programs, or services, except those
expressly designated by the manufacturer, are the user’s responsibility.
Lexmark and Lexmark with diamond design are trademarks of Lexmark International, Inc. registered in the United
States and/or other countries.
© Copyright 2002 Lexmark International, Inc.
All rights reserved.
UNITED STATES GOVERNMENT RESTRICTED RIGHTS
This software and documentation are provided with RESTRICTED RIGHTS. Use, duplication or disclosure by the
Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and
Computer Software clause at DFARS 252.227-7013 and in applicable FAR provisions: Lexmark International, Inc.,
Lexington, KY 40550.
i
Table of contents
Introduction ........................................................................ 1
Chapter 1: Your First Script ..............................................2
Example of a work flow process ............................................. 2
Using the ScriptWizard to write your script ............................. 4
EmailSMTP ................................................................................ 8
ConvertToDocument ............................................................... 12
FaxByPrinter ............................................................................ 15
Compiling your new script .................................................... 18
Creating a Profile .................................................................. 20
Using the MFP ProfileWizard .................................................. 21
Summary .............................................................................. 25
Chapter 2: Parts of a Script ............................................26
Objects ................................................................................. 26
Properties and methods .......................................................... 26
Data Objects ............................................................................ 28
Action Objects ......................................................................... 32
System Objects ....................................................................... 33
Helper Objects ......................................................................... 35
Summary .............................................................................. 38
ii
Chapter 3: Using the Script Editor .................................39
Script Editor Toolbar ............................................................. 40
Adding an Action Using the Insert Actions Wizard ............... 41
Add Actions Manually ........................................................... 45
Compilation Prompts ............................................................ 47
Summary .............................................................................. 47
Chapter 4: Flow Control ..................................................48
Conditional Statements ........................................................ 48
If/Then ..................................................................................... 48
Switch/Case ............................................................................. 51
Repetitive Statements .......................................................... 52
Loop ......................................................................................... 52
Repeat ..................................................................................... 53
Summary .............................................................................. 54
Chapter 5: User Data .......................................................55
Creating User Data in a Script .............................................. 57
Types of User Data ............................................................... 59
Using User Data in a Script .................................................. 64
Summary .............................................................................. 65
1
Introduction
This document provides an introduction to writing scripts for the Lexmark Document Distributor (LDD)
Version 2.1. It is assumed you are familiar with basic programming concepts and have some
experience with a programming language such as C, C++, or Visual Basic. For a detailed technical
specification of the scripting language, see the Script Reference. To study example scripts for the
Document Distributor, see the Script Examples. Both of these documents are located at Start
Programs Lexmark Document Distributor Client.
Included in this book:
Chapter 1, "Your First Script"Planning and creating your first script.
Chapter 2, "Parts of a Script"Explores the script created in Chapter 1. Covers objects, data types,
system objects, helper objects, and Actions.
Chapter 3, "Using the Script Editor"Add Actions and other features to scripts created with
ScriptWizard.
Chapter 4, "Flow Control"Insert logic statements that control execution of other parts of the script.
Chapter 5, "User Data"Prompt end users for additional information when a script is run, then use
the data in a script.
2
1
Your First Script
To unleash the power of Document Distributor you need to create a script. To create a script you will
need to understand the business process that you want to automate. Processes that are rarely
performed or procedures that require a large amount of human intervention throughout the process
probably aren't good candidates for Document Distributor automation. These guidelines can help you
decide if your process qualifies for automation:
Does your task:
Have steps done repeatedly in exactly the same way or with only minor variations?
Have multiple steps?
Already have a partially automated process (Document Distributor can further automate it)?
Have a means of getting documents into a back-end process that end users don't need to
know about?
Have parts of a process that may change, but your end users don't need to know about it?
Need to be simplified for your end users?
Once you've decided that Document Distributor can improve your workflow process, analyze the steps
involved in the process.
Example of a work flow process
The Human Resources Department must post job openings within the hospital every week in various
locations throughout the hospital. Each week the list of job openings is faxed to various departments in
the hospital. The recipients in the department then put the list of job openings on their bulletin board.
Some departments are willing to receive the job listing as an e-mail rather than a fax. But until
everyone is willing to receive an e-mail, someone must fax the list to those who prefer a fax and e-mail
the list to everyone else.
This is a process that is repeated regularly and has multiple steps. As more departments are willing to
accept an e-mail, the process will change as the e-mail list grows and the fax list shrinks. The end
users are Human Resource employees that are familiar with the job openings, but not necessarily with
the e-mail addresses and fax numbers of all the various departments throughout the hospital.
3
Now look at the Actions provided by Document Distributor and see how they match up with the
example process.
In the hospital example, you need to break down the Document flow and then pick the Actions that
correspond:
1 E-mail listings to departments (EmailSMTP)
2 Convert document to fax (ConvertToDocument)
3 Fax job listings to departments (FaxByPrinter)
Next, write the script using the ScriptWizard.
Route Documents Print Documents Store and Retrieve Documents
EmailExchange PrintASCII DatabaseNotes
EmailNotes PrintByAssoc FTPget
EmailSMTP PrintByDriver FTPput
FaxByPrinter PrintIP GWDiscuss
GWMail PrintPDF GWCheckIn
LaunchExe PrintTIF ODBCRead
PrintURL ODBCWrite
SaveToFile
Manipulate Documents Recognize Document Content EDMS Integration
ConvertImageFormat ConvertBarcodeToText DominoDocCheckin
ConvertToDocument ConvertForm DominoDocRetrieve
ImageCombine ConvertToText SharePointRead
ImageCrop SharePointWrite
ImageDeskew
ImageInvert
ImageMerge
ImageRotate
ImageSeparate
ImageText
4
Using the ScriptWizard to write your script
The ScriptWizard helps you quickly create scripts to automate your workflow.
1 Start the ScriptWizard by clicking the ScriptWizard icon
2 A Dialog box appears listing the steps to take to create a script. Click Next.
3 Choose which Document Server will process this script. Select Primary Server for your first
script. Click Next.
5
4
Give your script a name. This is the name your end users see when selecting a profile from an
MFP or workstation. The name can be up to 15 characters long. You may also provide a longer
description to help identify this work flow process. This description can be seen by end users
who submit jobs from a workstation through Select'N'Send or Print'N'Send. For this example,
enter "JobList" as the script name. Click Next.
6
5
In the Example of a work flow process on page 2, the end user will scan the list of job
openings or submit the list using Print'N'Send, so select Yes, a document is required for this
job. No user data is needed in this script. To learn more about user data, see User Data on
page 55.
7
6
Select the Actions. Choose which Actions will be used in your script. For this example, you
need one e-mail Action, one conversion Action, and one fax Action.
Select EmailSMTP. Click Add.
Select ConvertToDocument. Click Add.
Select FaxByPrinter. Click Add.
There are now three Actions in your script.
When creating a script, you can add as many Actions as you want. You can also add the same
Action several times. For example, add FaxByPrinter again if you want to fax the document
twice. The Actions are carried out in the order they are added to the script. If you need to use
the results of one Action in another Action, be sure to put them in the correct order. For
example, in this script you need a PostScript document for faxing with the FaxByPrinter Action.
So you first added the ConvertToDocument Action that converts our scanned document to
PostScript before faxing it.
Now you're ready to configure each Action. Click Next.
8
EmailSMTP
In order to send e-mail, you need to specify some properties. Click on each of the following to specify
the property.
Server
To
From
Subject
Message
Attachments
1 Click the Server Property. This property indicates the mail server that sends the e-mail. Select
Use value specified, and type in the name of the mail server.
9
2
Click the To property. This property indicates to whom the e-mail is sent. Select Use value
specified, and type in the recipient of the e-mail.
3 Click the From property. This property is the senders e-mail address. Select Use value
specified, and type in the senders e-mail address.
10
4
Click the Subject property. This string is the subject of the e-mail that is sent. Select Use
value specified, and type in the subject.
11
5
Click the Message property. This string is the text of the e-mail that is sent, along with any
attachments. Select Use value specified, and type in the message.
6 Click the Attachments property. This property indicates what documents to attach to the
e-mail. Since this script e-mails the original document received from the user, click Use a
variable or property and choose original.document from the list. This indicates the
originally scanned document.
7 Click Next to set the properties of the ConvertToDocument Action.
12
ConvertToDocument
The FaxByPrinter Action requires the input document be in PostScript format. Because of this, the
ConvertToDocument Action is used first to produce a PostScript file.
The following properties need to be set:
Input
Format
Output
1 Click the Input property. This is the document the action will operate on. Click on Use a
variable or property and choose original.document from the list. This is the document
originally scanned by the user.
Note: Before using an action, check the Script Reference located at Start
Programs
Lexmark Document Distributor Client, to see what kind of document is required for
the Action.
13
2
Click the Format property. This property specifies the file format of the output from this Action.
Choose PostScript as the conversion format.
14
3
Click the output property. This property specifies where to keep the output from this Action.
Click Create a new variable called in order to create a new document variable. Type in
PSDocument as the name of the new document. This document can be used in subsequent
Actions.
4 Click Next to set the properties of the FaxByPrinter Action.
15
FaxByPrinter
This Action is used to send a fax using a Lexmark MFP. The following properties need to be specified:
Input
IPAddress
FaxNumber
StationID
1 Click the Input property. This is the document that will be faxed. Click on Use a variable or
property, select the PostScript document created by the ConvertToDocument Action called
PSDocument.
16
2
Click on the IPAddress property. Provide the IP address or DNS name of the fax-enabled
Lexmark printer to be used for faxing.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70

Lexmark Document Distributor User manual

Category
Software
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI