Adobe 65010248 Scripting Guide - Page 7

Script support in Adobe Illustrator CS4, ExtendScript features, Script file extensions

Page 7 highlights

CHAPTER 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. NOTE: 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 AppleScript JavaScript ExtendScript VBScript File type compiled script OSAS file text text Extension .scpt (none) .js .jsx .vbs Platforms Mac OS Windows Mac OS Windows

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57

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