Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
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
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 start-up
Session and main script execution
Basic document operations
Creating a new document
Opening a document
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
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 pages as EPS
Exporting all pages to EPS
Exporting a range of pages to EPS
Exporting as EPS with file naming
4Working with Page Items
➤Creating page items
Creating Page Items
Page Item Geometry
Grouping Page Items
Duplicating and Moving 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
5Text and Type
Entering and importing text
Creating a text frame
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
About find/change preferences
Finding and changing text formatting
Using grep
Using glyph search
Working with tables
Path text
Setting text preferences
6User Interfaces
Dialog overview
Your first InDesign dialog
CHAPTER 6: User Interfaces Adding a user interface to “Hello World” 102
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 eventListeners
An example “afterNew” eventListener
Sample “beforePrint” eventListener
Understanding the menu model
Localization and menu names
Running a menu action from a script
Adding menus and menu items
Menus and events
Working with scriptMenuActions
A more complex menu-scripting example
The best approach to scripting XML in InDesign?
Scripting XML elements
Setting XML preferences
Setting XML import preferences
Importing XML
Creating an XML tag
Loading XML tags
Saving XML tags
Creating an XML element
Moving an XML element
Deleting an XML element
Duplicating an XML element
Removing items from the XML structure
Creating an XML comment
Creating an XML processing instruction
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
10XML Rules
Why use XML rules?
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
Applying formatting with XML rules
Creating page items with XML rules
Creating tables using XML rules
Scripting the XML-rules processor object
0 of .
Results for:
No results containing your search query
P. 1


Ratings: (0)|Views: 974 |Likes:
Published by taunus11

More info:

Published by: taunus11 on Sep 09, 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 4 to 18 are not shown in this preview.
You're Reading a Free Preview
Pages 22 to 48 are not shown in this preview.
You're Reading a Free Preview
Pages 52 to 60 are not shown in this preview.
You're Reading a Free Preview
Pages 64 to 160 are not shown in this preview.
You're Reading a Free Preview
Pages 164 to 168 are not shown in this preview.

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Sorina Brazda liked this
Alan Roche liked this
Lucas Curti liked this

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)//-->