Selecting Scripts - Adobe 27510753 - InDesign CS2 - PC Manual

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

Advertisement

46
Using ExtendScript Tools and Features
running
halted
waiting
The current engine is the one whose data and state is displayed in the Toolkit's panes. If an application has
only one engine, its engine becomes current when you select the application as the target. If there is more
than one engine available in the target application, you can select an engine in the list to make it current.
When you open the Toolkit, it attempts to reconnect to the same target and engine that was set last time it
closed. If that target application is not running, the Toolkit prompts for permission to launch it. If permission is
refused, the Toolkit itself becomes the target application.
If the target application that you select is not running, the Toolkit prompts for permission and launches
the application. Similarly, if you run a script that specifies a target application that is not running (using the
#target
selected as the current target, the Toolkit prompts you to switch to it.
If you select an application that cannot be debugged in the Toolkit (such as Adobe Help), an error dialog
reports that the Toolkit cannot connect to the selected application.
The ExtendScript Toolkit is the default editor for JSX files. If you double-click a JSX file in a file browser, the
Toolkit looks for a #target directive in the file and launches that application to run the script; however, it first
checks for syntax errors in the script. If any are found, the Toolkit displays the error in a message box and quits
silently, rather than launching the target application. For example:

Selecting scripts

The Scripts tab offers a list of debuggable scripts for the target application, which can be JS or JSX files or (for
some applications) HTML files that contain embedded scripts.
Select a script in this tab to load it and display its contents in the editor pane, where you can modify it, save it,
or run it within the target application.
directive), the Toolkit prompts for permission to launch it. If the application is running but not
Adobe InDesign CS2 Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents