Allowing Or Preventing Dialogs; Working With The Photoshop Cs3 Object Model; Using The Application Object - Adobe 23102480 - Photoshop CS3 - PC Programming Manual

Scripting guide
Table of Contents

Advertisement

Adobe Photoshop CS3 Scripting Guide
preferences.typeUnits = TypeUnits.PIXELS
In the Adobe Photoshop CS3 JavaScript Scripting Reference, or in the ExtendScript Object Model Viewer, look
up the
Preferences
preferences

Allowing or Preventing Dialogs

It is important to be able to control dialogs properly from a script. If a dialog appears, your script stops
until a user dismisses the dialog. This is normally fine in an interactive script that expects a user to be
sitting at the machine. But if you have a script that runs in an unsupervised (batch) mode, you do not want
dialogs to be displayed and stop your script.
You use the
to control whether or not dialogs are displayed.
Note:
Using dialogs in your script is roughly equivalent to using stops in a Photoshop CS3 action.
AS
The following script prevents dialogs from being displayed:
set display dialogs to never
In the Adobe Photoshop CS3 AppleScript Scripting Reference or in the Photoshop CS3 AppleScript Dictionary,
look up the
VBS
To set dialog preferences, you use the
appRef.DisplayDialogs = 3
'for PsDialogModes --> 3 (psDisplayNoDialogs)
Note that, because
Application
In the Adobe Photoshop CS3 Visual Basic Scripting Reference, or in the Visual Basic Object Browser, look up
the
Application
constant
JS
To set dialog preferences, you use the
displayDialogs = DialogModes.NO
In the Adobe Photoshop CS3 JavaScript Scripting Reference, or in the ExtendScript Object Model Viewer, look
up the
Application

Working with the Photoshop CS3 Object Model

This section contains information about using the objects in the Photoshop CS3 Object Model. For
information on object models, see Introduction to Scripting and

Using the Application Object

This section describes how and when to use the
use some properties of the
object to view all of the settings properties you can use. Additionally, look up the
property on the
Application
(
display dialogs
DisplayDialogs/displayDialogs
Class application
DisplayDialogs
object in the script to get to the property.
object property
. You can also look up the options for
PsDialogModes
object property
Application
Photoshop CS3
object.
to find the values you can use for the
property of the
DisplayDialogs
is a property of the
Application
. You'll see the value type for this property is the
DisplayDialogs
property of the
displayDialogs
, and then look up the constant
displayDialogs
Application
object.
Scripting Photoshop CS3
) property of the
Application
display dialogs
Application
object, you must reference the
.
PsDialogModes
Application
'Photoshop CS3 Object Model' on page
object in a script. It also describes how to
31
object
property.
object.
object.
.
DialogModes
9.

Advertisement

Table of Contents
loading

This manual is also suitable for:

13102498 - photoshop cs3 - macPhotoshop cs3

Table of Contents