AdobeBridgeCS5SDK

Class SnpListenDocEvents

Object
   |
   +--SnpListenDocEvents

class SnpListenDocEvents


Shows how to create separate event handlers for different events.

Usage

  1. Run the snippet in the ExtendScript Toolkit (see Readme.txt)
  2. In Bridge, select Bridge > File > New Window, and inspect the JavaScript console of the ExtendScript Toolkit.
  3. Select Bridge > File > Close Window, and inspect the JavaScript console.
  4. 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.
 
Constructor Summary
SnpListenDocEvents()
           
 
Method Summary
 boolean canRun()
           Determines whether snippet can be run given current context.
 boolean run()
           Functional part of this snippet.

Field Detail

requiredContext

String requiredContext

Constructor Detail

SnpListenDocEvents

SnpListenDocEvents()

Method Detail

canRun

boolean canRun()

run

boolean run()

AdobeBridgeCS5SDK

http://www.adobe.com/devnet/bridge
Documentation generated by JSDoc on Tue Apr 27 10:21:34 2010