Using A Preset; Setting Up Master Spreads - 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
end try
--Fill in the properties of the document preset.
tell myDocumentPreset
set page height to "9i"
set page width to "7i"
set left to "4p"
set right to "6p"
set top to "4p"
set bottom to "9p"
set column count to 1
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"
set facing pages to true
set page orientation to portrait
set pages per document to 1
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

Using a preset

To create a new document using a document preset, use the document preset parameter as previously
shown in the "Creating a new document" section.

Setting up master spreads

After you've set up the basic document page size, slug, and bleed, you'll probably want to define the
document's master spreads:
--MasterSpread.as
--An InDesign CS2 AppleScript
--Set up the first master spread in a new document.
tell application "Adobe InDesign CS2"
set myDocument to make document
--Set up the document.
tell document preferences of myDocument
set page height to "11i"
set page width to "8.5i"
set facing pages to true
set page orientation to portrait
end tell
--Set the document's ruler origin to page origin. This is very important--
--if you don't do this, getting objects to the correct position on the
--page is much more difficult.
set ruler origin of view preferences of myDocument to page origin
tell master spread 1 of myDocument
--Set up the left page (verso).
tell margin preferences of page 1
set column count to 3
set column gutter to "1p"
set bottom to "6p"
--"left" means inside, "right" means outside.
set left to "6p"
set right to "4p"
set top to "4p"
end tell
--Add a simple footer with a section number and page number.
with properties {name:"myDocumentPreset"}
Working with Documents in AppleScript
87

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents