Changing The Pasteboard's Appearance; Using Guides And Grids; Defining Guides - Adobe 27510753 - InDesign CS2 - PC Manual

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

Advertisement

82
Working with Documents in AppleScript
set myX1 to left
set myY2 to bottom
set myX2 to right
--Set the application default margin preferences.
set top to 0
set left to 0
set bottom to 0
set right to 0
end tell
--At this point, you can create a new document.
set myDocument to make document
--At this point, you can set your page size to a small width and height
--(1x1 picas minimum).
set page height of document preferences of myDocument to "1p"
set page width of document preferences of myDocument to "1p"
--Reset the application default margin preferences to their former state.
tell margin preferences
set top to myY1
set left to myX1
set bottom to myY2
set right to myX2
end tell
end tell

Changing the pasteboard's appearance

The pasteboard is an area that surrounds InDesign pages. You can use it for temporary storage of page items.
You can change the size of the pasteboard and its color using scripting. The pasteboard color property
controls the color of the pasteboard in Normal mode; the preview background color property sets the
color of the pasteboard in Preview mode:
--PasteboardPreferences.as
--An InDesign CS2 AppleScript
--Create a new document and change the size of the pasteboard.
tell application "Adobe InDesign CS2"
set myDocument to make document
tell pasteboard preferences of myDocument
--You can use either a number or a measurement string to set the
--space above/below.
set minimum space above and below to "12p"
--You can set the pasteboard color to any of the predefined UIColor constants...
set pasteboard color to white
set preview background color to gray
--...or you can specify an array of RGB values (with values from 0 to 255)
--set pasteboard Color to {0, 0, 0}
--set preview Background Color to {192, 192, 192}
end tell
end tell

Using guides and grids

Guides and grids make it easy to position objects on your document pages.
Defining guides
A guide in InDesign gives you an easy way to position objects on the pages of your document. Here's an
example use of guides:
--Guides.as
--An InDesign CS2 AppleScript
--Creates a series of example guides.
Adobe InDesign CS2 Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents