Adobe 27510753 Scripting Guide - Page 87
Defining bleed and slug areas, Within InDesign,
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 87 highlights
Adobe InDesign CS2 Scripting Guide Working with Documents in AppleScript 79 tell document preferences of myDocument set page height to "800pt" set page width to "600pt" set page orientation to landscape set pages per document to 16 end tell end tell Note: The application object also has a document preferences object. You can set the application defaults for page height, page width, and other properties by changing the properties of this object. Defining bleed and slug areas Within InDesign, a bleed or a slug is an area outside the page margins that can be printed or included in an exported PDF. Typically, these areas are used for objects that extend beyond the page edges (bleed) and job/document information (slug). The two areas can be printed and exported independently-for example, you might want to omit slug information for the final printing of a document. The following script sets up the bleed and slug for a new document: --BleedAndSlug.as --An InDesign CS2 AppleScript --Shows how to define the bleed and slug areas of a document. tell application "Adobe InDesign CS2" --Create a new document. set myDocument to make document --The bleed and slug properties belong to the document preferences object. tell document preferences of myDocument --Bleed set document bleed bottom offset to "3p" set document bleed top offset to "3p" set document bleed inside or left offset to "3p" set document bleed outside or right offset to "3p" --Slug set slug bottom offset to "18p" set slug top offset to "3p" set slug inside or left offset to "3p" set slug right or outside offset to "3p" end tell end tell If all the bleed distances are equal, as in the preceding example, you can alternatively use the document bleed uniform size property: --UniformBleed.as --An InDesign CS2 AppleScript --Shows how to use the uniform size property of the document bleed. tell application "Adobe InDesign CS2" --Create a new document. set myDocument to make document --The bleed properties belong to the document preferences object. tell document preferences of myDocument --Bleed set document bleed top offset to "3p" set document bleed uniform size to true end tell end tell If all the slug distances are equal, you can instead use the document slug uniform size property: --UniformSlug.as --An InDesign CS2 AppleScript --Shows how to use the uniform size property of the document slug. --Create a new document. tell application "Adobe InDesign CS2" --Create a new document.