Installing Scripts; Running A Script; Using The Scripts Panel - Adobe 65024872 - InDesign CS4 - Mac Manual

Scripting guide
Hide thumbs Also See for 65024872 - InDesign CS4 - Mac:
Table of Contents

Advertisement

Adobe InDesign CS4 Scripting Tutorial

Installing scripts

Installing an InDesign script is easy: put the script file in the Scripts Panel folder inside the Scripts folder in
your InDesign application folder. (Create the Scripts folder if it does not already exist.)
Alternately, put the script inside the Scripts Panel folder in your preferences folder. Your preferences folder
is at:
Windows® XP:
Mac OS®:
where
is your system volume and
~
Once the script is in the folder, it appears on the Scripts panel inside InDesign. To display the panel, choose
Window > Automation > Scripts.
You also can put aliases/shortcuts to scripts (or to folders containing scripts) in the Scripts Panel folder, and
they will appear in the Scripts panel.
To run a specific script when InDesign starts, put the script inside a folder named "Startup Scripts" inside
the Scripts folder (create this folder if it does not already exist).

Running a script

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

Using the scripts panel

The InDesign Scripts panel is the easiest and best way to run most InDesign scripts. If the panel is not
already visible, you can display it by choosing Window > Automation > Scripts.
Scripts run from the Scripts panel run faster than scripts run from the Finder (Mac OS
(Windows
Another way to make scripts run faster is to turn off screen redraw while the script is running. To do this,
turn on the Enable Redraw from the Scripts panel menu. To view the script actions as they execute, turn
this option off.
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, select the script and choose Edit Script from the Scripts panel
menu. Alternatively, you can 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, select the script and choose Reveal in
Finder (Mac OS) or Reveal in Explorer (Windows). Alternatively, you can hold down the Command (Mac OS)
or Ctrl-Shift (Windows) keys and double-click the script's name. The folder containing the script opens in
the Finder (Mac OS) or Explorer (Windows).
~\Documents and Settings\
\InDesign\Version 6.0\Scripts
~/Users/
®
).
), JavaScripts (files with the file extension
\Application Data\Adobe
/Library/Preferences/Adobe InDesign/Version 6.0/Scripts
is your user name.
or
.js
®
) or Explorer
), VBScripts (files with the extension
.jsx
Getting started 6
,
, or
.spt
.as

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs4

Table of Contents