1.8

Table Of Contents
Function Description
"resource()"
on page928
This function returns information about an image resource. It can also be
used to check if a file exists.
Examples of iterator functions
Function Description
"Each" on
page909
A generic iterator function, to iterate over the elements in the result set
"For...in" on
page911
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
logger
This is a global ScriptLogger object that allows logging messages such as error, warning or
informational messages. The messages will appear in the Messages pane (see "Preflight
Results and Messages" on page759 and "Designer User Interface" on page666).
Methods
These are the methods of the logger object.
Method Parameters Description
error()
message: string
Logs an error message
info() message: string Logs an informational message
warn() message: string Logs a warning message
record
The record object gives access to the record that is currently being merged with the template.
Page 876