Adobe 65010248 Scripting Guide - Page 32

JavaScript, Printing Illustrator documents

Page 32 highlights

CHAPTER 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: Property Value DISPLAYALERTS DONTDISPLAYALERTS Result Interaction is allowed. No interaction is allowed. VBScript In VBScript, there are two possible values for the UserInteractionLevel property of the Application object: Property Value Result aiDisplayAlerts Interaction is allowed. aiDontDisplayAlerts No interaction is allowed. Printing Illustrator documents Using the print 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 print command or method takes one optional parameter, which allows you to specify a print options object. The print options object allows you to define print settings like PPD, PostScript options, paper options, and color-management options. The print options object also has a print preset property, which allows you to specify a preset to define your print job. When defining the properties of a print 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 print presets list properties.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57

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
print
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
print
command or method takes one optional parameter, which allows you to
specify a
print
options
object.
The
print
options
object allows you to define print settings like PPD, PostScript options, paper options,
and color-management options. The
print
options
object also has a
print
preset
property, which
allows you to specify a preset to define your print job.
When defining the properties of a
print
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
print
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.