Adobe Smoke Alarm CS3 Manual De Usuario

Descargar
Página de 85
     19
3
Scripting Photoshop CS3
This chapter demonstrates several techniques for using the Photoshop Document Object Model (DOM) to 
create scripts to use specifically with Photoshop CS3. 
You will also learn how to use the reference manuals and object model browsers to find information about 
the objects, classes, properties, commands, and even some values (called constants or enumerations) you 
can use to create AppleScripts, VBScript scripts, and JavaScripts for Photoshop CS3. 
Tip:
Throughout this chapter, the explanation of how to create a script is followed by instructions for 
locating information about the specific elements used in the script. Using these instructions will help 
you quickly understand how to script Photoshop CS3. 
Viewing Photoshop CS3 Objects, Commands, and Methods
The Photoshop CS3 reference material for each of the three scripting languages is found in the reference 
manuals provided in this installation: 
Adobe Photoshop CS3 AppleScript Scripting Reference
Adobe Photoshop CS3 Visual Basic Scripting Reference
Adobe Photoshop CS3 JavaScript Scripting Reference
In addition, you can also access reference material by using the associated object model browser for each 
language:
For AppleScript, use the AppleScript Script Editor to view the Photoshop CS3 AppleScript Dictionary.
For VBScript, use the VBA editor in Microsoft Word, or the Visual Basic Object Browser in Visual Basic, or 
Visual Studio.
For JavaScript, use the ExtendScript Object Model Viewer. See the JavaScript Tools Guide for more 
information.
Viewing Photoshop CS3’s AppleScript Dictionary
You use Apple’s Script Editor application to view the dictionary. 
Note:
The default location for the Script Editor is Applications > AppleScript > Script Editor.
To view the AppleScript dictionary:
1. In Script Editor, choose File > Open Dictionary
Script Editor displays an Open Dictionary dialog.
2. Choose AdobePhotoshop CS3, and then click Open
Script Editor opens Photoshop CS3 and then displays the Photoshop CS3 dictionary, which lists objects 
as well as the commands, properties and elements associated with each object. The dictionary also lists 
the parameters for each command.
Note:
The Photoshop CS3 AppleScript Dictionary does not display the complete list of open and save 
formats.