Adobe 65010248 Scripting Guide - Page 8

Viewing sample scripts, Viewing the object model, Viewing the JavaScript object model

Page 8 highlights

CHAPTER 1: Introduction Viewing sample scripts 8 Viewing sample scripts Adobe provides sample scripts for many objects, properties, and methods in the Illustrator CS4 DOM. You can view script samples in two locations: ➤ In the /Scripting/Sample Scripts folder in your Illustrator CS4 installation directory ➤ In the Adobe Illustrator CS4 scripting reference for your scripting language, located in the /Scripting/Documentation folder in your Illustrator CS4 installation directory Viewing the object model Each of the supported scripting languages provides a facility for viewing the scripting objects defined by Illustrator, with reference details. Viewing the JavaScript object model To view the JavaScript object model for Illustrator, follow these steps: 1. Start the ESTK. In a default Adobe installation, the ESTK is in the following location: ➣ Windows: system drive\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit CS4 ➣ Mac OS: system drive:Applications:Utilities:Adobe Utilities:ExtendScript Toolkit CS4 2. In the ESTK, choose Help > Object Model Viewer. 3. In the Object Model Viewer window, select Adobe Illustrator CS4 Type Library from the Browser drop-down list. Several extended sample scripts are available in the /Scripting/Sample Scripts folder in your Illustrator CS4 installation directory. You also can view script samples and information about individual classes, objects, properties, methods, and parameters in Adobe Illustrator CS4 Scripting Reference: JavaScript, located in the /Scripting/Documentation folder in your Illustrator CS4 installation directory. Viewing the AppleScript object model Apple provides a Script Editor with all Mac OS systems. You can use Script Editor to view the AppleScript dictionary that describes Illustrator objects and commands. For details of how to use Script Editor, see Script Editor Help. 1. Start Script Editor. NOTE: In a default Mac OS installation, Script Editor is in Applications:AppleScript:Script Editor. If you cannot find the Script Editor application, you must reinstall it from your Mac OS system CD.

  • 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
Viewing sample scripts
8
Viewing sample scripts
Adobe provides sample scripts for many objects, properties, and methods in the Illustrator CS4 DOM. You
can view script samples in two locations:
In the
/Scripting/Sample
Scripts
folder in your Illustrator CS4 installation directory
In the Adobe Illustrator CS4 scripting reference for your scripting language, located in the
/Scripting/Documentation
folder in your Illustrator CS4 installation directory
Viewing the object model
Each of the supported scripting languages provides a facility for viewing the scripting objects defined by
Illustrator, with reference details.
Viewing the JavaScript object model
To view the JavaScript object model for Illustrator, follow these steps:
1.
Start the ESTK.
In a default Adobe installation, the ESTK is in the following location:
Windows:
system drive
\Program Files\Adobe\Adobe
Utilities\ExtendScript
Toolkit
CS4
Mac OS:
system drive
:Applications:Utilities:Adobe Utilities:ExtendScript
Toolkit
CS4
2.
In the ESTK, choose Help > Object Model Viewer.
3.
In the Object Model Viewer window, select Adobe Illustrator CS4 Type Library from the Browser
drop-down list.
Several extended sample scripts are available in the
/Scripting/Sample
Scripts
folder in your Illustrator
CS4 installation directory.
You also can view script samples and information about individual classes, objects, properties, methods,
and parameters in
Adobe Illustrator CS4 Scripting Reference: JavaScript
, located in the
/Scripting/Documentation
folder in your Illustrator CS4 installation directory.
Viewing the AppleScript object model
Apple provides a Script Editor with all Mac OS systems. You can use Script Editor to view the AppleScript
dictionary that describes Illustrator objects and commands.
For details of how to use Script Editor, see Script Editor Help.
1.
Start Script Editor.
N
OTE
:
In a default Mac OS installation, Script Editor is in
Applications:AppleScript:Script
Editor
. If you cannot find the Script Editor application, you must reinstall it from your Mac OS system
CD.