Adobe 27510753 Scripting Guide - Page 108
set print file to printFile of print preferences of myDocument
![]() |
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 108 highlights
100 Working with Documents in AppleScript Adobe InDesign CS2 Scripting Guide --If the preset does not already exist, then create it of --print preferences of myDocument --otherwise, fill in the properties of the existing preset. tell application "Adobe InDesign CS2" try set myPreset to printer preset "myPreset" on error set myPreset to make printer preset with properties {name:"myPreset"} end try set myDocument to active document tell myPreset --Because many printing properties are dependent on other printing properties, --we've surrounded each property-setting line with try...end try statements---these will make it easier for you to experiment with print preset settings. try set printer to printer of print preferences of myDocument end try try set PPD to PPD of print preferences of myDocument end try try set copies to copies of print preferences of myDocument end try try set collating to collating of print preferences of myDocument end try try set reverse order to reverse order of print preferences of myDocument end try try set print spreads to print spreads of print preferences of myDocument end try try set print master pages to print master pages of ¬ print preferences of myDocument end try try set print file to printFile of print preferences of myDocument end try try set sequence to sequence of print preferences of myDocument end try try set print blank pages to print blank pages of print preferences of myDocument end try try set print guides grids to print guides grids of ¬ print preferences of myDocument end try try set print nonprinting to print nonprinting of print preferences of myDocument end try try set paper size to paper size of print preferences of myDocument end try try set paper height of myPreset to paper height of ¬ print preferences of myDocument end try try set paper width of myPreset to paper width of print preferences of myDocument end try try set print page orientation of myPreset to print page orientation of ¬ print preferences of myDocument end try try set page position of myPreset to page position of ¬
![](/manual_guide/products/adobe-27510753-scripting-guide-5f6265c/108.png)