C
1: Introduction
HAPTER
Script support in Adobe Illustrator CS4
Illustrator scripting supports VBScript and JavaScript scripts for Windows, and AppleScript and JavaScript
scripts for Mac OS.
N
: Also, Adobe scripting-enabled applications, including Illustrator, support ExtendScript, Adobe's
OTE
extended implementation of ECMA JavaScript. ExtendScript files are distinguished by the
Giving your JavaScript files a
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
model" on page
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
AppleScript
JavaScript
ExtendScript
VBScript
extension allows you to take advantage of ExtendScript features and
.jsx
8.
File type
compiled script
OSAS file
text
text
Script support in Adobe Illustrator CS4 7
"Viewing the JavaScript object
Extension
Platforms
Mac OS
.scpt
(none)
Windows
.js
.jsx
Mac OS
Windows
.vbs
extension.
.jsx