AdobeBridgeCS5SDK

Class SnpDefineAppClosingHandler

Object
   |
   +--SnpDefineAppClosingHandler

class SnpDefineAppClosingHandler


Shows how to create an event handler that responds to the application close event.

Usage

  1. Run the snippet in the ExtendScript Toolkit (see Readme.txt), setting Bridge CS5 as the target application.
  2. In Bridge, select File > Exit
  3. Click Yes or No.
  4. If you click No, then you will find that Bridge does not exit.
  5. If you click Yes, then you should find that Bridge exits normally.

Description

An event handler listens for the close event from the App object, and displays a confirm dialog in which the user can choose whether or not to actually quit from Adobe Bridge.

See:

Defined in SnpDefineAppClosingHandler.jsx


Field Summary
 String requiredContext
          The context in which this snippet can run; Bridge must be running.
 
Constructor Summary
SnpDefineAppClosingHandler()
           
 
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

SnpDefineAppClosingHandler

SnpDefineAppClosingHandler()

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