Class SnpListenDocEvents
Object
|
+--SnpListenDocEvents
- class
SnpListenDocEvents
Shows how to create separate event handlers for different events.
Usage
- Run the snippet in the ExtendScript Toolkit (see Readme.txt)
- In Bridge, select Bridge > File > New Window, and inspect the JavaScript
console of the ExtendScript Toolkit.
- Select Bridge > File > Close Window, and inspect the JavaScript
console.
- You should see information about the event that took place; for instance, a message in the JavaScript console
such as "SnpListenDocEvents: Document created".
Description
Defines separate event handlers for creating a new browser window and closing a browswer
window. If either event is triggered, displays a message in the JavaScript
console of the ExtendScript Toolkit.
See:
Defined in SnpListenDocEvents.jsx
Field Summary |
String |
requiredContext
The context in which this snippet can run; Bridge must be running. |
Method Summary |
boolean
|
canRun()
Determines whether snippet can be run given current context.
|
boolean
|
run()
Functional part of this snippet.
|
requiredContext
String requiredContext
The context in which this snippet can run; Bridge must be running.
SnpListenDocEvents
SnpListenDocEvents()
canRun
boolean canRun()
Determines whether snippet can be run given current context. The snippet
fails if these preconditions are not met:
- Must be running in Bridge
Returns:
True is this snippet can run, false otherwise
run
boolean run()
Functional part of this snippet.
Creates and registers the event handlers.
Returns:
True if the snippet ran as expected, false otherwise.
http://www.adobe.com/devnet/bridge
Documentation generated by
JSDoc on Tue Apr 27 10:21:34 2010