Class SnpAddContextMenuItem
Object
|
+--SnpAddContextMenuItem
- class
SnpAddContextMenuItem
Shows how to add a custom menu element to a context menu in Bridge.
Usage
- Execute the snippet in the ExtendScript Toolkit (see Readme.txt)- with Adobe Bridge CS5 as the target.
- In Bridge, select a single thumbnail
- Right click in Windows, Ctrl-click in Mac OS to invoke context menu
- Select the new item, "SDK SnpAddContextMenuItem: ".
This brings up a dialog with information about the menu item that was selected.
Description
Shows how to add a custom menu element to a context menu in Bridge, when the user selects
a folder or file.
Adds a command to the context menu for thumbnails using a handler for
the onDisplay event, and defines behavior for it using a handler for the onSelect event.
When the command is selected, displays a message dialog.
The script can only be run once within a Bridge session; you must restart Bridge to run it again.
This avoids the creation of duplicate menu elements with slightly different behavior.
See:
Defined in SnpAddContextMenuItem.jsx
Field Summary |
String |
menuID
The unique identifier for the new menu item command |
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.
|
menuID
String menuID
The unique identifier for the new menu item command
requiredContext
String requiredContext
The context in which this snippet can run; Bridge must be running.
SnpAddContextMenuItem
SnpAddContextMenuItem()
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
- Must only be executed once in a session
Returns:
True is this snippet can run, false otherwise
run
Boolean run()
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