EDOBE XDOM EM Specifications Page 137

  • Download
  • Add to my manuals
  • Print
  • Page
    / 231
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 136
Adobe Photoshop CS6
JavaScript Scripting Reference JavaScript Object Reference 137
Notifiers
The collection of Notifier objects in the document. Access through the Application.notifiers collection
property. For example:
var notRef = app.notifiers.add("OnClickGoButton", eventFile)
Notifiers must be enabled using the Application.notifiersEnabled property.
Properties
Methods
Property Value type What it is
length
number
Read-only. The number of elements in the notifiers
collection.
parent
Application
Read-only. The notifiers object’s container
typename
string
Read-only. The class name of the referenced notifiers object.
Method Parameter type Returns What it does
add
(event,
eventFile
[, eventClass])
string
File
string
Notifier
Creates a notifier object and adds it to this
collection.
event defines the class ID of the event: use a
4-characters code or a unique string. See
Appendix A: Event ID Codes
.
eventFile defines the script file that
executes when the event occurs.
When an event applies to multiple types of
objects, use the
eventClass (a 4-character ID
or unique string) to distinguish which object
this
Notifier applies to. For example, the
Make event (
"Mk ") applies to documents
(
"Dcmn"), channels ("Chnl") and other
objects.
Tip: When specifying an event or event calss
wtih a 4-character ID code, omit the
single quotes in your code.
removeAll
()
Removes all member objects from the
notifiers collection.
You can also remove a
notifier object from
the Script Events Manager drop-down list by
deleting the file named
Script Events
Manager.xml
from the Photoshop
preferences folder. See Adobe
Photoshop CS6 help for more information.
Page view 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 230 231

Comments to this Manuals

No comments