Working With The Photoshop Cs2 Object Model - Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
Note:
Using dialogs in your script is roughly equivalent to using stops in a Photoshop CS2 action.
AS
The following script prevents dialogs from being displayed:
set display dialogs to never
In the Adobe Photoshop CS2 AppleScript Scripting Reference, look up the
values you can use for the
VBS
To set dialog preferences, you use the
appRef.DisplayDialogs = 3
'for PsDialogModes --> 3 (psDisplayNoDialogs)
Note that, because
Application
In the Adobe Photoshop CS2 Visual Basic Scripting Reference, look up the
DisplayDialogs
"Constants" chapter, look up the options for
JS
To set dialog preferences, you use the
displayDialogs = DialogModes.NO
In the Adobe Photoshop CS2 JavaScript Scripting Reference, look up the
displayDialogs

Working with the Photoshop CS2 Object Model

This section contains information about using the objects in the Photoshop CS2 Object Model. For
information on object models, see
Object Model' on page 8
Using the Application Object
This section describes how and when to use the
use some properties of the
You use the properties and commands/methods of the
functionality and objects such as the following:
Global Photoshop CS2 settings or preferences, such as unit values or color settings. See
Application Preferences' on page 46
Documents—You can add or open documents and set the active document.
on page 42
Actions—You can execute actions created either via scripting or using the Actions palette in the
Photoshop CS2 application.
You can use Application object properties to get information such as the following:
A list of fonts installed on the system.
AS:
VBS:
display dialogs
DisplayDialogs
object in the script to get to the property.
. You'll see the value type for this property is the constant
, and then look up the constant
.
Application
and
'Setting the Active Object' on page 39
Set theFonts to fonts
Set fontsInstalled = AppRef.fonts
Photoshop CS2
property.
property of the
DisplayDialogs
is a property of the
Application
psDialogModes
property of the
displayDialogs
DialogModes
'Object Model Concepts' on page 7
Application
object.
Application
.
Scripting Photoshop CS2
Class application
Application
object, you must reference the
Application
psDialogModes
.
Application
Application
in the "Constants" chapter.
and
'Photoshop CS2's
object in a script. It also describes how to
object to work with Photoshop CS2
'Opening a Document'
.
47
to find the
object.
object property
. In the
object.
object property
'Setting

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs2

Table of Contents