Class SnpDefineAppClosingHandler
Object
|
+--SnpDefineAppClosingHandler
- class
SnpDefineAppClosingHandler
Shows how to create an event handler that responds to the application close event.
Usage
- Run the snippet in the ExtendScript Toolkit (see Readme.txt), setting Bridge CS5 as the target application.
- In Bridge, select File > Exit
- Click Yes or No.
- If you click No, then you will find that Bridge does not exit.
- 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. |
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.
SnpDefineAppClosingHandler
SnpDefineAppClosingHandler()
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.
Registers an event handler that is called when the user requests that the
Bridge application be closed.
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