Executeaction; Working With Method Parameters - Adobe 19400084 - Photoshop CS3 Extended Manual

Javascript scripting reference
Table of Contents

Advertisement

JavaScript Scripting Reference
Method

executeAction

(eventID
[, descriptor]
[, displayDialogs])

Working with Method Parameters

Optional parameters are surrounded by square brackets ( [ ] ). In the following Methods table sample, the
parameters
Therefore, if you use the
table above, you must include an
value must be a number, as indicated by the
eventID
column.
If you use an optional parameter, you must separate the parameters with a comma, as indicated by the
comma that precedes each optional parameter in the table.
Also, if you use an optional parameter, you must enter the values in the order they are listed in the table so
that the JavaScript compiler knows which value you are entering. To skip an optional parameter, insert an
extra comma to act as a placeholder.
The following sample provides values for an
parameter (represented by the empty value between two commas). The statement executes action #4233
and allows only error type dialog boxes to be displayed.
app.executeAction(4233,,error)
Parameter Type
number (long)
ActionDescriptor
DialogModes
and
descriptor
displayDialogs
executeAction()
eventID
Adobe Photoshop CS3
Returns
ActionDescriptor
are optional and the parameter
method for the object associated with the sample Methods
value in the parentheses following the method name. The
number (long)
and a
eventID
displayDialog
JavaScript Object Reference
What it does
Plays an
ActionManager
is not.
eventID
in the table's Parameter Type
, but skips the
descriptor
36
event.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs3

Table of Contents