Defining Bleed And Slug Areas - Adobe 27510753 - InDesign CS2 - PC Manual

Scripting guide
Hide thumbs Also See for 27510753 - InDesign CS2 - PC:
Table of Contents

Advertisement

Adobe InDesign CS2 Scripting Guide
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
--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.
property:
Working with Documents in AppleScript
79

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents