2
Parts of a Script
In the previous section you learned how to use ScriptWizard to create your first script. Now, let's
examine the script created by ScriptWizard to learn how it works. Each script is written in LDDScript, a
scripting language unique to Document Distributor.
Objects
Objects are the building blocks of LDD scripts. There are four types of objects:
•
Data—Store your data and settings for Actions. For example; strings, integers, and
documents.
•
Actions—Process documents by performing operations such as e-mail, print and fax.
•
System Objects—Provide information about the document originally scanned and the user
that sent the current job to the Document Server.
•
Helper—Help perform common operations such as reading a text file.
Properties and methods
All objects contain properties and methods. A property is a value that can be set that effects how the
object operates. A method is a function that operates on the object's data. Methods may have
parameters and may return values.
Accessing properties and methods for objects
A dot notation is used to access the properties and methods of an object.
Example:
EmailSMTP is an Action object that sends e-mail. The EmailSMTP object has several properties that
define how the e-mail is sent.
To access the property, specify the object name followed by "." then the property name.
EmailSMTP.To = "NewEmployee@lexmark.com"
This specifies who to send the e-mail to. In the example in Chapter 1, values are set for several
properties.
To execute the method, specify the object name followed by "." then the method name.
EmailSMTP.Go()
This method sends the e-mail which is defined using the properties.
26
Need help?
Do you have a question about the Document Distributor and is the answer not in the manual?
Questions and answers