Adobe InDesign CS2 Scripting Guide
--set composite frequency to 175
--set simulate overprint to false
--------------------------------------------------------------------------------
--Properties corresponding to the controls in the Graphics panel
--of the Print dialog box.
--------------------------------------------------------------------------------
set send image data to all image data
set font downloading to complete
try
set download PPD fonts to true
end try
try
set data format to binary
end try
try
set PostScript level to level 3
end try
--------------------------------------------------------------------------------
--Properties corresponding to the controls in the Color Management panel
--of the Print dialog box.
--------------------------------------------------------------------------------
--If the use color management property of color settings is false,
--attempting to set the following properties will return an error.
try
set source space to use document
set intent to use color settings
set CRD to use document
set profile to PostScript CMS
end try
--------------------------------------------------------------------------------
--Properties corresponding to the controls in the Advanced panel
--of the Print dialog box.
--------------------------------------------------------------------------------
set OPI image replacement to false
set omit bitmaps to false
set omit EPS to false
set omit PDF to false
--The following line assumes that you have a flattener preset
--named "high quality flattener".
try
set flattener preset name to "high quality flattener"
end try
set ignore spread overrides to false
end tell
end tell
Using printer presets
To print a document using a printer preset, include the printer preset in the print command:
--PrintDocumentWithPreset.as
--An InDesign CS2 AppleScript
--Prints the active document using the specified preset.
tell application "Adobe InDesign CS2"
--The following line assumes that you have defined a print preset
--named "myPrintPreset".
print active document using "myPrintPreset"
end tell
Creating printer presets from printing preferences
To create a printer preset from the print preferences of a document:
--CreatePrinterPreset.js
--An InDesign CS2 AppleScript
Working with Documents in AppleScript
99