Adobe InDesign CS4 Scripting Tutorial

JavaScript . . . . . .36. VBScript . . . . . .36. Overriding master page items and adding text. … hundreds of tutorial scripts covering topics like text …

More PDF Content

Adobe InDesign CS4 Scripting Tutorial ADOBE INDESIGN CS4 ADOBE INDESIGN CS4 SCRIPTING TUTORIAL 2008 Adobe Systems Incorporated. All rights reserved. Adobe InDesign CS4 Scripting Tutorial If this guide is distributed with software that includes an end user agreement, this guide, as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note that the content in this guide is protected under copyright law even if it is not distributed with software that includes an end user license agreement. The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in the informational content contained in this guide. Please remember that existing artwork or images that you may want to include in your project may be protected under copyright law. The unauthorized incorporation of such material into your new work could be a violation of the rights of the copyright owner. Please be sure to obtain any permission required from the copyright owner. Any references to company names in sample templates are for demonstration purposes only and are not intended to refer to any actual organization. Adobe, the Adobe logo, Creative Suite, InDesign, Illustrator, and Photoshop are registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Microsoft and Windows are registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Apple and Mac OS are trademarks of Apple Computer, Incorporated, registered in the United States and other countries. All other trademarks are the property of their respective owners. Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA. Notice to U.S. Government End Users. The Software and Documentation are Commercial Items, as that term is defined at 48 C.F.R. 2.101, consisting of Commercial Computer Software and Commercial Computer Software Documentation, as such terms are used in 48 C.F.R. 12.212 or 48 C.F.R. 227.7202, as applicable. Consistent with 48 C.F.R. 12.212 or 48 C.F.R.  227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software and Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as Commercial Items and (b) with only those rights as are granted to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright laws of the United States. Adobe Systems Incorporated, 345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all applicable equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60, 60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be incorporated by reference. 3 Contents
Introduction …….. 5
Getting started …… 5
Installing scripts …… 6
Running a script …… 6
Using the scripts panel ….. 6
About scripting languages ……. 7
JavaScript … 7
Windows …. 7
Mac OS …… 8
Which scripting language should you use? …….. 8
How to use the scripts in this document …… 8
Your first InDesign script … 9
AppleScript …….. 9
JavaScript … 9
VBScript ….. 9
Walking through the script …. 10
Scripting and the InDesign object model …. . 11
Scripting terminology ….. 11
Comments …….. 11
Values …… 11
Variables … 13
Operators … 15
Conditional statements ……. 15
Control structures ……. 15
Functions and handlers ……. 16
Understanding the InDesign object model … 16
Looking at the InDesign object model ….. 18
Measurements and positioning …… 24
Adding features to Hello World …… 25
AppleScript … 25
JavaScript ….. 26
VBScript …… 27
Contents 4
Constructing a document ……. 29
Setting up measurement units and master spread margins …. . 31
AppleScript ……. 31
JavaScript ……. . 31
VBScript …. 32
Adding a baseline grid …. 32
AppleScript ……. 33
JavaScript ……. . 33
VBScript …. 33
Adding master page items …… 33
AppleScript ……. 34
JavaScript ……. . 34
VBScript …. 35
Adding master text frames …… 35
AppleScript ……. 36
JavaScript ……. . 36
VBScript …. 36
Overriding master page items and adding text …. . 37
AppleScript ……. 37JavaScript ……. . 37
VBScript …. 37
Adding and applying a paragraph style …… 38
AppleScript ……. 38
JavaScript ……. . 39
VBScript …. 39
Placing a text file …. 40
AppleScript ……. 40
JavaScript ……. . 40
VBScript …. 41
Placing a graphic …. 41
AppleScript ……. 41
JavaScript ……. . 42
VBScript …. 43
Beyond the basics ……. . 44
5 Adobe InDesign CS4 Scripting Tutorial Introduction Scripting is the most powerful feature in Adobe InDesign CS4. No other feature can save you as much time, trouble, and money as scripting. This document is for every InDesign user. If you never created a script before, we show you how to get started. If you wrote scripts for other applications, we show you how to apply your knowledge to InDesign scripting. The document also covers how to install and run an InDesign script and describes what InDesign scripting can and cannot do. We discuss the software you need to start writing your own scripts. After you learn the basics of InDesign scripting in this tutorial, you can move on to Adobe InDesign CS4 Scripting Guide, which explores scripting in more depth. Adobe InDesign CS4 Scripting Guide contains hundreds of tutorial scripts covering topics like text formatting, finding and changing text, associating scripts with menu items, drawing objects on a page, and exporting documents. Getting started Almost anything you can do with the user interface; you can do with a script. You c

Download Adobe InDesign CS4 Scripting Tutorial pdf from, 44 pages, 1128.54KB.
Related Books

4 Responses to “Adobe InDesign CS4 Scripting Tutorial”

  1. Captcha Solving Service on May 22nd, 2013 at 3:34 pm

    It sucks how @Blogger commenting with Google account works.

    You solve captcha just to leave a comment every time and sometimes you re-login.

Leave a Reply