Adobe Photoshop CS5 Object Library JS: Notifiers
From Photoshop CS5
Class
Notifiers
A collection of notifier objects in the document.See also Notifier.
QuickLinks
[], add, getByName, removeAllHierarchy
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| length | int | readonly | Number of elements in the collection. |
| parent | Object | readonly | The object's container. |
| typename | string | readonly | The class name of the object. |
Methods
Instances
Notifier [] (index:
uint)
Get an element in the collection with the provided index.
| Parameter | Type | Description |
|---|---|---|
| index | uint |
Notifier add (event:
string, eventFile:
File[, eventClass:
string])
Creates a notifier.
| Parameter | Type | Description |
|---|---|---|
| event | string | The class id of the event, four characters or a unique string. |
| eventFile | File | The script file to execute when the event occurs. |
| eventClass | string | The class of the object the event is applied to, four characters or a unique string. When an event applies to multiple types of objects, you use the event class parameter to distinguish which object this Notifier applies to. For example, the Make event (�Mk�) applies to documents (�Dcmn�), channels (�Chnl�) and other objects. (Optional) |
Notifier getByName (name:
string)
Get the first element in the collection with the provided name.
| Parameter | Type | Description |
|---|---|---|
| name | string |
void removeAll ()
Deletes all elements.
Element of
Application.notifiers
| Jongware, 28-Aug-2012 v3.0.3i | Contents :: Index |