
C
HAPTER
1: Introduction
Script support in Adobe Illustrator CS4
7
Script support in Adobe Illustrator CS4
Illustrator scripting supports VBScript and JavaScript scripts for Windows, and AppleScript and JavaScript
scripts for Mac OS.
N
OTE
:
Also, Adobe scripting-enabled applications, including Illustrator, support ExtendScript, Adobe’s
extended implementation of ECMA JavaScript. ExtendScript files are distinguished by the
.jsx
extension.
Giving your JavaScript files a
.jsx
extension allows you to take advantage of ExtendScript features and
tools.
ExtendScript features
ExtendScript offers all standard JavaScript features, plus a development and debugging environment, the
ExtendScript Toolkit (ESTK). The ESTK is installed with all scriptable Adobe applications.
The ESTK includes an Object Model Viewer that contains complete documentation of the methods and
properties of JavaScript objects.
For information on accessing the ESTK and the Object Model Viewer, see
“Viewing the JavaScript object
model” on page 8
.
ExtendScript tools
ExtendScript also provides various tools and utilities, including the following:
➤
A localization utility
➤
Tools that allow you to combine scripts and direct them to particular applications
➤
Platform-independent file and folder representation
➤
Tools for building user interfaces to your scripts
➤
A messaging framework that allows you to send and receive scripts and data among
scripting-enabled Adobe applications
For details of these and other features, see
JavaScript Tools Guide
.
Script file extensions
For a file to be recognized by Adobe Illustrator CS4 as a valid script file, the file must have the correct file
name extension:
Script type
File type
Extension
Platforms
AppleScript
compiled script
OSAS file
.scpt
(none)
Mac OS
JavaScript
ExtendScript
text
.js
.jsx
Windows
Mac OS
VBScript
text
.vbs
Windows