
C
HAPTER
3: Scripting Illustrator
Printing Illustrator documents
32
The four values allow you to control interaction based on the source of the script commands. For example,
if the application is acting as a server for remote users, it would be difficult for a remote user to dismiss a
dialog, but it would be no problem for someone sitting in front of the machine. In this case, an interaction
level of
interact with local
would prevent dialogs from halting remote scripts but would allow dialogs to be
presented for local scripts.
JavaScript
In JavaScript, there are two possible values for the
app.userInteractionLevel
property:
VBScript
In VBScript, there are two possible values for the
UserInteractionLevel
property of the
Application
object:
Printing Illustrator documents
Using the
options
scripting feature, you can capture and automate parts of your print workflow.
Scripting exposes the full capabilities of Illustrator printing, some of which may not be accessible through
the application’s user interface.
Illustrator supports at most one print session at a time, because of limits in the current printing
architecture.
The
document
object’s
command or method takes one optional parameter, which allows you to
specify a
options
object.
The
options
object allows you to define print settings like PPD, PostScript options, paper options,
and color-management options. The
options
object also has a
preset
property, which
allows you to specify a preset to define your print job.
When defining the properties of a
options
object, you can find out which printers, PPDs, print
presets, and other items are available by using the
application
object’s read-only “list” properties, such
as the
printer
list
,
PPD
file
list
, and
presets
list
properties.
Property Value
Result
DISPLAYALERTS
Interaction is allowed.
DONTDISPLAYALERTS
No interaction is allowed.
Property Value
Result
aiDisplayAlerts
Interaction is allowed.
aiDontDisplayAlerts
No interaction is allowed.