AdobeBridgeCS5SDK

Class SnpAddContextMenuItem

Object
   |
   +--SnpAddContextMenuItem

class SnpAddContextMenuItem


Shows how to add a custom menu element to a context menu in Bridge.

Usage

  1. Execute the snippet in the ExtendScript Toolkit (see Readme.txt)- with Adobe Bridge CS5 as the target.
  2. In Bridge, select a single thumbnail
  3. Right click in Windows, Ctrl-click in Mac OS to invoke context menu
  4. 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.
 
Constructor Summary
SnpAddContextMenuItem()
           
 
Method Summary
 boolean canRun()
           Determines whether snippet can be run given current context.
 Boolean run()
           Functional part of this snippet.

Field Detail

menuID

String menuID

requiredContext

String requiredContext

Constructor Detail

SnpAddContextMenuItem

SnpAddContextMenuItem()

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