
CHAPTER 1: Introduction Viewing the object model 9
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:
Z Windows:
system drive\Program Files\Adobe\Adobe Utilities CS5\ExtendScript Toolkit CS5
Z Mac OS:
system drive:Applications:Utilities:Adobe Utilities CS5:ExtendScript Toolkit CS5
2. In the ESTK, choose Help > Object Model Viewer.
3. In the Object Model Viewer window, select Adobe Illustrator CS5 Type Library from the Browser
drop-down list.
Several extended sample scripts are available in the
/Scripting/Sample Scripts folder in your Illustrator
CS5 installation directory.
You also can view script samples and information about individual classes, objects, properties, methods,
and parameters in Adobe Illustrator CS5 Scripting Reference: JavaScript, which you can download from
http://www.adobe.com/devnet/illustrator/scripting/
.
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.
2. Choose File > Open Dictionary. Script Editor displays an Open Dictionary dialog.
3. In the Open Dictionary dialog, find and select Adobe Illustrator CS5, and click Open.
Script Editor displays a list of the Illustrator objects and commands, which include the properties and
elements associated with each object and the parameters for each command.
Several extended sample scripts are in the
:Scripting:Sample Scripts folder in your Illustrator CS5
installation directory.
You also can view script samples and information about individual classes, objects, properties, methods
and parameters in Adobe Illustrator CS5 Scripting Reference: AppleScript, which you can download from
http://www.adobe.com/devnet/illustrator/scripting/
.
Comentarios a estos manuales