
Adobe Photoshop CS3
JavaScript Scripting Reference
JavaScript Object Reference 138
Methods
Method
Parameter type
Returns
What it does
index
(itemKey)
number
Notifier
Gets an element from the
notifiers
collection.
add
(event,
eventFile
[, eventClass])
string
File
string
Notifier
Creates a
notifier
object.
event
defines the class ID of the event: four
characters or a unique string. For a list of
four-character codes, see
Appendix A: Event
ID Codes
.
Tip:
Remember to omit the single quotes
when including a four-character ID in
your code.
eventFile
defines the script file that
executes when the event occurs.
Note:
An
eventClass
value corresponds to
the class of object the event is applied
to: four characters or a unique string.
When an
event
applies to multiple
types of objects, you use the
eventClass
parameter to distinguish
which object this
Notifier
applies to.
For example, the Make event
(
“Mk “
) applies to documents
(
“Dcmn”
), channels (
“Chnl”
) and other
objects.
removeAll
()
Removes all
notifier
objects from the
notifiers
collection.
Note:
You can remove a
notifier
object
from the Script Events Manager
drop-down list by deleting the file
named
Script Events Manager.xml
from in the Photoshop preferences
folder. See Adobe Photoshop CS3 help
for more information.