JAVASCRIPT TOOLS GUIDE © 2010 Adobe Systems Incorporated

Total Page:16

File Type:pdf, Size:1020Kb

JAVASCRIPT TOOLS GUIDE © 2010 Adobe Systems Incorporated ADOBE® CREATIVE SUITE® 5 JAVASCRIPT TOOLS GUIDE © 2010 Adobe Systems Incorporated. All rights reserved. Adobe® Creative Suite® 5 JavaScript Tools Guide for Windows® and Macintosh®. NOTICE: All information contained herein is the property of Adobe Systems Incorporated. No part of this publication (whether in hardcopy or electronic form) may be reproduced or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Adobe Systems Incorporated. The software described in this document is furnished under license and may only be used or copied in accordance with the terms of such license. This publication and the information herein is furnished AS IS, 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, makes no warranty of any kind (express, implied, or statutory) with respect to this publication, and expressly disclaims any and all warranties of merchantability, fitness for particular purposes, and noninfringement of third party rights. 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, Acrobat, After Effects, Creative Suite, Dreamweaver, Fireworks, Flash, Flex, Flex Builder, Illustrator, InCopy, InDesign, and Photoshop are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Apple, Mac, Macintosh, and Mac OS are trademarks of Apple Computer, Inc., registered in the United States and other countries. Microsoft, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries. JavaScript and all Java-related marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. UNIX is a registered trademark of The Open Group. All other trademarks are the property of their respective owners. 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. Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA. Contents 1 Introduction . 9 ExtendScript overview . 9 Example code . 9 Development and debugging tools . 10 Cross-platform file-system access . 10 User-interface development tools . 10 Interapplication communication and messaging . 10 External communication . 11 External shared-library integration . 11 Additional utilities and features . 11 Scripting for specific applications . 12 Startup scripts . 12 JavaScript variables . 12 2 The ExtendScript Toolkit . 13 Configuring the Toolkit window . 13 Panel menus . 14 Document windows . 15 Workspaces . 16 Dialogs . 16 Selecting scripts . 17 The Scripts panel and favorite script locations . 17 The Script Editor . 18 Navigation aids . 19 Coding aids . 22 Searching in text . 24 Syntax marking . 26 Debugging in the Toolkit . 27 Selecting a debugging target . 27 The JavaScript console . 28 Controlling code execution . 29 Visual indication of execution states . 30 Setting breakpoints . 31 Evaluation in help tips . 33 Tracking data . 33 The call stack . 34 Code profiling for optimization . 35 Inspecting object models . 36 3 File System Access . 39 Using File and Folder objects . 39 Specifying paths . 39 Unicode I/O . 43 3 4 File error handling . 43 File access error messages . 44 File- and Folder-supported encoding names . 45 Additional encodings . 45 File object . 47 File object constructors . ..
Recommended publications
  • ANSI® Programmer's Reference Manual Line Matrix Series Printers
    ANSI® Programmer’s Reference Manual Line Matrix Series Printers Printronix, LLC makes no representations or warranties of any kind regarding this material, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. Printronix, LLC shall not be held responsible for errors contained herein or any omissions from this material or for any damages, whether direct, indirect, incidental or consequential, in connection with the furnishing, distribution, performance or use of this material. The information in this manual is subject to change without notice. This document contains proprietary information protected by copyright. No part of this document may be reproduced, copied, translated or incorporated in any other material in any form or by any means, whether manual, graphic, electronic, mechanical or otherwise, without the prior written consent of Printronix, LLC Copyright © 1998, 2012 Printronix, LLC All rights reserved. Trademark Acknowledgements ANSI is a registered trademark of American National Standards Institute, Inc. Centronics is a registered trademark of Genicom Corporation. Dataproducts is a registered trademark of Dataproducts Corporation. Epson is a registered trademark of Seiko Epson Corporation. IBM and Proprinter are registered trademarks and PC-DOS is a trademark of International Business Machines Corporation. MS-DOS is a registered trademark of Microsoft Corporation. Printronix, IGP, PGL, LinePrinter Plus, and PSA are registered trademarks of Printronix, LLC. QMS is a registered
    [Show full text]
  • ANSI® Programmer’S Reference Manual
    ® ANSI® Programmer’s Reference Manual ANSI® Printers Programmer’s Reference Manual ® Trademark Acknowledgements Printronix, Inc. Unisys MTX, Inc. Memorex Telex Decision Systems InternationalDecision Data, Inc. makes no representations or warranties of any kind regarding this material, including, but not limited to, implied warranties of merchantability and fitness for a particular purpose. Printronix, Inc. Unisys MTX, Inc. Memorex Telex Decision Systems InternationalDecision Data, Inc. shall not be held responsible for errors contained herein or any omissions from this material or for any damages, whether direct, indirect, incidental or consequential, in connection with the furnishing, distribution, performance or use of this material. The information in this manual is subject to change without notice. This document contains proprietary information protected by copyright. No part of this document may be reproduced, copied, translated or incorporated in any other material in any form or by any means, whether manual, graphic, electronic, mechanical or otherwise, without the prior written consent of Printronix, Inc.Unisys.MTX, Inc. Memorex Telex. Decision Systems International.Decision Data, Inc. Copyright © 1998, 2010 Printronix, Inc. All rights reserved. Trademark Acknowledgements ANSI is a registered trademark of American National Standards Institute, Inc. Centronics is a registered trademark of Genicom Corporation. Dataproducts is a registered trademark of Dataproducts Corporation. Epson is a registered trademark of Seiko Epson Corporation. IBM and Proprinter are registered trademarks and PC-DOS is a trademark of International Business Machines Corporation. MS-DOS is a registered trademark of Microsoft Corporation. Printronix, IGP, PGL, LinePrinter Plus, and PSA are registered trademarks of Printronix, Inc. QMS is a registered trademark and Code V is a trademark of Quality Micro Systems, Inc.
    [Show full text]
  • User-Manual-Dascom-Tally-T5040-En
    User Guide T5040 Flatbed Printer Mantenimiento Periféricos Informaticos C/Canteras, 15 28860 Paracauellos de Jarama (Madrid) Tel: 00 34 917481604 Web: https://mpi.com.es/ TRADEMARK ACKNOWLEDGEMENTS • Centronics is a trademark of Centronics Data Computer Corporation. • PCL and PCL6 are trademarks of Hewlett-Packard Company. • IBM and IBM PC are trademarks of International Business Machines Corporation. • Apple, AppleTalk, TrueType, Laser Writer and Macintosh are trade-marks of Apple Computer, Inc. • Microsoft, Windows, Windows 9x, Windows ME, Windows 2000, Windows NT, Windows XP and MS- DOS are registered trademarks of Microsoft Corporation. • PostScript is a trademark of Adobe Systems Inc. • All other brand or product names are trademarks of their respective companies or organizations. Mantenimiento Periféricos Informaticos C/Canteras, 15 28860 Paracauellos de Jarama (Madrid) Tel: 00 34 917481604 Web: https://mpi.com.es/ User Guide Table of contents Table of contents Introduction 1 Printer features 1 Interfaces 1 Emulations 1 Symbols used 1 About this manual 2 1 Printer at a glance 3 View from the front 3 View with cover opened 3 View from the rear 4 2 Installation 5 Unpacking the printer 5 Placing your printer 6 Checking the printer voltage 8 Connecting the printer 8 Switching on the printer 10 3 Printer drivers and firmware 11 Printer drivers 11 Installing a printer driver in Windows 95/98/ME 11 Installing a printer driver in Windows 2000/ 2003/XP 11 Installing a printer driver in Windows 7 13 Installing a printer driver in Windows Vista
    [Show full text]
  • Preface Dirxmetahub Document Set
    Preface DirXmetahub Document Set Preface This manual is reference for the DirXmetahub meta controller and its associated programs and files. It consists of the following chapters: S Chapter 1 provides reference pages for the meta controller command-line program metacp and for the binary trace log file analyzers dirxdumplog and dxmdumplog. S Chapter 2 describes the meta controller attribute configuration file format. S Chapter 3 describes the data file formats supported by the meta controller. S Chapter 4 describes the use of change log information. S Chapter 5 describes the extensions to the meta directory store schema that are required to support the integrated DirXmetahub meta agents and the DirXmetahub synchronization jobs. S Chapter 6 describes the string representations and use of attribute syntaxes for LDAP binds by the meta controller to the meta directory store. It also contains a reference page for simple syntaxes and reference pages for each of the structured syntaxes. S Chapter 7 describes the files used by the metacp, dirxdumplog and dxmdumplog programs. S Chapter 8 describes the environment variables used by the metacp, dirxdumplog and dxmdumplog programs. S Chapter 9 describes the synchronization templates supplied with DirXmetahub. S Chapter 10 describes procedures for use of data file formats like XML and change log. S Appendix A provides a list of country codes. S Appendix B provides detailed information on code conversion. DirXmetahub Document Set The DirXmetahub document set consists of the following manuals: S DirXmetahub Administration Guide. Use this book to obtain a description of DirXmetahub architecture and components and to understand the basic tasks of DirXmetahub administration using DirXmetahub Manager.
    [Show full text]
  • Extendscript Toolkit CS5 Readme
    March 1, 2010 ExtendScript Toolkit CS5 ReadMe 1. Overview This document contains a list of new features, changes, and known issues in this ExtendScript Toolkit CS5 (ESTK) release. It also describes a few hidden gems, like additional Preferences settings. 2. New Features in CS5 The ExtendScript Toolkit comes with a number of improvements related to its usability: Change the font size within the Console pane. There are new menu items in the flyout menu of the Console pane to increase and decrease the font size. Convert tab stops to space characters. The Preferences dialog provides the option Convert Tab Stops to Space Characters in the Documents section. New icons for read-only properties within the DataBrowser pane. Open new documents in floating windows. The Preferences dialog provides the option Create new documents in a floating window in the Documents section. New Error dialog. Progress bar within the Object Model Viewer window. Object Model Viewer can be displayed in a dockable window. The Preferences dialog provides the option Display Object Model Viewer in a floating window. Option to not bring a target application to the front when starting a debug session. The Preferences dialog provides the option Bring target application to front in the Debugging section. Fast access to clear the Console pane. There is a new menu item, Edit > Clear Console. Revised output of debugging sessions. A click on the line number area of a document invokes the “Go to Line” dialog. Automatic document backup. See details below. Document backup preference The ESTK provides the ability to automatically back up documents whenever you modify them in any way.
    [Show full text]
  • Adobe Indesign CS6 Javascript Scripting Guide
    ADOBE® INDESIGN® CS6 ADOBE INDESIGN CS6 SCRIPTING GUIDE: JAVASCRIPT 2012 Adobe Systems Incorporated. All rights reserved. Adobe® InDesign® CS6 Scripting Guide: JavaScript Document Update Status (for entire document; see each chapter for chapter-specific update status) CS6 Updated Throughout document, changed CS5 to CS6 and version 7.0 to 8.0. 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.
    [Show full text]
  • ADOBE INDESIGN CS4 SERVER SCRIPTING GUIDE © 2008 Adobe Systems Incorporated
    ADOBE® INDESIGN® CS4 SERVER ADOBE INDESIGN CS4 SERVER SCRIPTING GUIDE © 2008 Adobe Systems Incorporated. All rights reserved. Adobe® InDesign® CS4 Server Scripting Guide 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.
    [Show full text]
  • Adobe Creative Cloud for Teams
    Adobe Creative Cloud for teams World-class creative apps. Hassle-free administration. Built to accelerate your team’s creativity, Adobe Creative Cloud for teams gives you access to the world’s best creative apps and updates as soon as they’re released. Explore new creative frontiers in 3D design, voice prototyping, and 360/VR video. Get updates to your favorite apps. And try the newest apps, like Adobe Premiere Rush CC, Adobe Photoshop Lightroom CC, and Adobe XD CC. Collaborate securely Share files and folders across desktops, devices, and the web. Adobe Creative Cloud Libraries make it easy to maintain version control, stay on top of changes, and work together more productively. And you can edit video projects as a team with Adobe Team Projects inside your Creative Cloud video apps. Deploy and manage without hassles Deploy apps and updates your way—either handle them centrally or let users install as needed. Use the web-based Admin Console to add or reassign seats anytime with just a few clicks, and billing catches up at your next payment cycle. Get expert help when you need it Have questions about deployment or license management? Creative Cloud for teams offers an onboarding webinar as well as advanced 24x7 technical support. And if you need training on a desktop app, count on 1:1 Expert Services sessions and thousands of tutorials to help you make the most of your software. Jump-start the design process with Adobe Stock Access millions of high-quality, royalty-free creative assets, including images, graphics, videos, templates, and 3D.
    [Show full text]
  • ADOBE INDESIGN CS5 SCRIPTING TUTORIAL © 2010 Adobe Systems Incorporated
    ADOBE® INDESIGN® CS5 ADOBE INDESIGN CS5 SCRIPTING TUTORIAL © 2010 Adobe Systems Incorporated. All rights reserved. Adobe® InDesign® CS5 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.
    [Show full text]
  • Character Encodings
    APPENDIX A Character Encodings A character is the basic unit of a writing system, for example, a letter of the English alphabet, and an ideograph of an ideographic writing system such as Chinese and Japanese ideographs. In the written form, a character is identified by its shape, also known as glyph. The identification of a character with its shape is not precise. It depends on many factors, for example, a hyphen is identified as a minus sign in a mathematical expression; some Greek and Latin letters have the same shapes, but they are considered different characters in two written scripts. Computers understand only numbers, more precisely, only bits 0 and 1. Therefore, it was necessary to convert, with the advent of computers, the characters into codes (or bit combinations) inside the computer’s memory, so that the text (sequence of characters) could be stored and reproduced. However, different computers may represent different characters with the same bit combinations, which may lead to misinterpretation of text stored by one computer system and reproduced by another. Therefore, for correct exchange of information between two computer systems, it is necessary that one computer system understand unambiguously the coded form of the characters represented in bit combinations produced by another computer system and vice versa. Before we begin our discussion of some widely used character encodings, it is necessary to understand some commonly used terms. • An abstract character is a unit of textual information, for example, the Latin capital letter A (‘A’). • A character repertoire is defined as the set of characters to be encoded.
    [Show full text]
  • Terminal Emulation User's Guide Trademarks
    Terminal Emulation User's Guide Trademarks ADDS Viewpoint A2 is a trademark of Applied Digital Data Systems Inc. AIX is a registered trademark of International Business Machines Corporation. DEC, VT52, VT100, VT131, VT220, VT300, VT320, VT340, VT400 and VT420 are registered trademarks of Digital Equipment Corporation. Hazeltine is a trademark of Esprit Systems, Inc. HP700/92, HP2392A and HP2622A are trademarks of Hewlett Packard Company. IBM is a registered trademark of International Business Machines Corporation. Microsoft is a registered trademark of Microsoft Corporation. Tandem, NonStop and LXN are trademarks of Tandem Computers Inc. TeleVideo is a registered trademark, and TeleVideo 910, 910+ and 925 are trademarks of TeleVideo Systems, Inc. WYSE is a registered trademark, and WY-50, WY-50+ and WY-60 are trademarks of Wyse Technology Inc. All other product names are trademarks of their respective manufacturers. Copyright © 2003 by Pericom Software PLC. All rights reserved. Before reproduction of this material in part or in whole, obtain written consent from Pericom Software PLC. Pericom Software PLC, The Stables, Cosgrove, Milton Keynes, MK19 7JJ, UK Tel: +44 (0) 1908 267111 Fax: +44 (0) 1908 267112 Contents Contents Introduction ....................................................... 1-1 About This User's Guide ............................................................... 1-1 Terms & Conventions .................................................................... 1-2 Getting Started.................................................
    [Show full text]
  • ADOBE INDESIGN CS6 SERVER SCRIPTING GUIDE  2012 Adobe Systems Incorporated
    ADOBE® INDESIGN® CS6 ADOBE INDESIGN CS6 SERVER SCRIPTING GUIDE 2012 Adobe Systems Incorporated. All rights reserved. Adobe® InDesign® CS6 Server Scripting Guide 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.
    [Show full text]