AdobeBridgeCS5SDK

Class SnpAddMenuItem

Object
   |
   +--SnpAddMenuItem

class SnpAddMenuItem


Shows how to add a custom menu element to Bridge.

Usage

  1. Run the snippet in the ExtendScript Toolkit (see Readme.txt)
  2. This creates a new context-sensitive menu item.
  3. In Bridge, select SnpAddMenu > SnpAddMenuItem

Description

Shows how to add a custom menu element to Bridge.

The script adds a new menu to the menu bar after the Help menu, with one menu item command. When selected, the command 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 SnpAddMenuItem.jsx


Field Summary
 String menuCommandID
          The unique identifier for the menu item command
 String menuID
          The unique identifier for the menu
 String requiredContext
          The context in which this snippet can run; Bridge must be running.
 
Constructor Summary
SnpAddMenuItem()
           
 
Method Summary
 boolean canRun()
           Determines whether snippet can be run given current context.
 boolean run()
           Functional part of this snippet.

Field Detail

menuCommandID

String menuCommandID

menuID

String menuID

requiredContext

String requiredContext

Constructor Detail

SnpAddMenuItem

SnpAddMenuItem()

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