Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

How to Use the Scripts in this Document
About the Structure of the Scripts
For More Information
Other JavaScript development options
2Scripting Features
Script Preferences
Getting the Current Script
Script Versioning
Using the doScript Method
Sending parameters to doScript
Returning values from doScript
Controlling Undo with doScript
Working with Script Labels
Running Scripts at Startup
Session and Main Script Execution
Basic Document Operations
Creating a new document
Opening a document
Saving a document
Closing a document
Basic Page Layout
Defining page size and document length
Defining bleed and slug areas
Setting page margins and columns
Changing the appearance of the pasteboard
Guides and grids
Changing measurement units and ruler
Defining and applying document presets
Setting up master spreads
Adding XMP metadata
Creating a document template
Creating watermarks
Adjusting Page Sizes and Layout
Selecting pages
Resizing and reframing pages
Transforming pages
Master page overlay
Printing a Document
Printing using page ranges
Setting print preferences
Printing with printer presets
Exporting a Document as PDF
Exporting to PDF
Setting PDF export options
Exporting a range of pages to PDF
Exporting individual pages to PDF
Exporting PDF with Interactive Features
Exporting Pages as EPS
Exporting all pages to EPS
Exporting a range of pages to EPS
Exporting as EPS with file naming
4Working with Layers
Understanding the Layer Object Model
Scripting Layers
Creating layers
Referring to layers
Deleting layers
Moving layers
Duplicating layers
Merging layers
Assigning page items to layers
Setting layer properties
5Working with Page Items
Creating page items
Creating Page Items
Page-item geometry
Grouping Page Items
Duplicating and Moving Page Items
Creating compound paths
Using Pathfinder operations
Converting page-item shapes
Arranging page items
Transforming Page Items
Using the transform method
Working with transformation matrices
Coordinate spaces
Transformation origin
Resolving locations
Transforming points
Transforming again
Resize and Reframe
6Text and Type
Entering and Importing Text
Creating a text frame
Adding text
Stories and text frames
Replacing text
Inserting special characters
Placing Text and Setting Text-Import Preferences
Exporting Text and Setting Text-Export Preferences
Understanding Text Objects
Working with text selections
Moving and copying text
Text objects and iteration
Working with Text Frames
Linking text frames
Unlinking text frames
Removing a frame from a story
Splitting all frames in a story
Creating an anchored frame
Formatting Text
Setting text defaults
Working with fonts
Applying a font
Changing text properties
Changing text color
Creating and applying styles
Deleting a style
Importing paragraph and character styles
Finding and Changing Text
About find/change preferences
Finding and changing text
Finding and changing text formatting
Using grep
Using glyph search
Working with Tables
Path Text
Span Columns
Setting Text Preferences
7User Interfaces
Dialog Overview
Your First InDesign Dialog
Adding a User Interface to “Hello World”
Creating a More Complex User Interface
Working with ScriptUI
Creating a progress bar with ScriptUI
Understanding the Event Scripting Model
About event properties and event propagation
Working with Event Listeners
Sample afterNew Event Listener
Sample beforePrint Event Listener
Sample Selection Event Listeners
Sample onIdle Event Listener
Understanding the Menu Model
Working with scriptMenuActions
A More Complex Menu-scripting Example
10Working with Preflight
Exploring Preflight Profiles
Listing preflight profiles
Listing preflight rules
Listing preflight data objects
Importing a Preflight Profile
Creating a Preflight Profile
Adding Rules
Processing a Profile
Custom Rules
Available Rules
11Creating Dynamic Documents
Importing Movies and Sounds
Creating Buttons
Creating Multistate Objects
Working with Animation
Basic animation
Motion presets
Key frames
Adding Page Transitions
The Best Approach to Scripting XML in InDesign
Working with XML attributes
Working with XML stories
Exporting XML
Adding XML Elements to a Layout
Associating XML elements with page items and text
Marking up existing layouts
Applying styles to XML elements
Working with XML tables
XML-rules programming model
XML Rules Examples
Setting up a sample document
Getting started with XML rules
Changing the XML structure using XML rules
Duplicating XML elements with XML rules
XML rules and XML attributes
Applying multiple matching rules
Finding XML elements
Extracting XML elements with XML rules
Applying formatting with XML rules
Creating page items with XML rules
Creating Tables using XML Rules
Scripting the XML-rules Processor Object
14Track Changes
Tracking Changes
Navigating tracked changes
Accepting and reject tracked changes
Information about tracked changes
Preferences for Tracking Changes
0 of .
Results for:
No results containing your search query
P. 1


|Views: 419|Likes:
Published by Artem Cenia

More info:

Published by: Artem Cenia on Apr 27, 2011
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 5 to 75 are not shown in this preview.
You're Reading a Free Preview
Pages 80 to 129 are not shown in this preview.
You're Reading a Free Preview
Pages 134 to 165 are not shown in this preview.
You're Reading a Free Preview
Pages 170 to 175 are not shown in this preview.
You're Reading a Free Preview
Pages 180 to 209 are not shown in this preview.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->