Running Scripts; Using The Scripts Panel; Javascript Language Details - Adobe 65009333 - InCopy CS4 - PC Manual

Scripting guide: javascript
Hide thumbs Also See for 65009333 - InCopy CS4 - PC:
Table of Contents

Advertisement

Getting Started
You also can put in the Scripts Panel folder aliases/shortcuts to scripts or folders containing scripts, and
they will appear in the Scripts panel.

Running scripts

To run a script, display the Scripts panel (choose Window > Scripts), then double-click the script name in
the Scripts panel. Many scripts display user-interface items (like dialogs or panels) and display alerts if
necessary.

Using the scripts panel

The Scripts panel can run compiled or uncompiled AppleScripts (files with the file extension
.applescript
), or executable programs from the Scripts panel.
.vbs
To edit a script shown in the Scripts panel, hold down Option (Mac OS) or Alt (Windows) key and
double-click the script's name. This opens the script in the editor you defined for the script file type.
To open the folder containing a script shown in the Scripts panel, hold down the Command (Mac OS) or
Ctrl-Shift (Windows) keys and double-click the script's name. Alternately, choose Reveal in Finder (Mac OS)
or Reveal in Explorer (Windows) from the Scripts panel menu. The folder containing the script opens in the
Finder (Mac OS) or Explorer (Windows).
Scripts run as a series of actions, which means you can undo the changes the script made to a document
by choosing Undo from the Edit menu. This can help you troubleshoot a script, as you can step backward
through each change.
To add a keyboard shortcut for a script, choose Edit > Keyboard Shortcuts, select an editable shortcut set
from the Set menu, then choose Product Area > Scripts. A list of the scripts in your Scripts panel appears.
Select a script and assign a keyboard shortcut as you would for any other InCopy feature.

JavaScript language details

InCopy's JavaScript support is based on an Adobe implementation of JavaScript known as ExtendScript.
The ExtendScript interpreter conforms to the current ECMA 262 standard for JavaScript. All language
features of JavaScript 1.5 are supported. Adobe Illustrator®, Adobe Photoshop®, and other Adobe Creative
Suite® products also use the ExtendScript JavaScript interpreter.
While you can write scripts using other versions of JavaScript, such as Late Night Software's OSA JavaScript
(on Mac OS) or Microsoft® JScript (on Windows), the terms you use in those languages are not the same as
the terms you use in ExtendScript. ExtendScript examples will not work in other JavaScript versions.
N
: Because ExtendScript tools and features are used in several Adobe products, we consolidated all
OTE
ExtendScript documentation. To learn more about JavaScript utilities like the ExtendScript Toolkit (a
JavaScript development environment and object-model inspector) and the ScriptUI user-interface
module, see Creative Suite 3 JavaScript Tools Guide.
), JavaScripts (files with the file extension
or
), VBScripts (files with the extension
.js
.jsx
Running scripts 8
,
, or
.spt
.as

Advertisement

Table of Contents
loading

This manual is also suitable for:

Incopy cs4

Table of Contents