Skip to main content
Participating Frequently
June 14, 2007
Question

Separators on Bridge CS3 context menus

  • June 14, 2007
  • 1 reply
  • 434 views
I am adding several menu items to the Bridge CS3 2.1 context menu in the content pane. The MenuElement constructors in the two scripts (one for each menu item) are:

var cntCommand = new MenuElement("command", "RejectImageMenuItem", "at the end of Thumbnail", this.menuID);

var cntCommand = new MenuElement("command", "SecondImageMenuItem", "after rejectRawImage", this.menuID);

I am getting separators between my menu elements in the context menu. I really want me two menu items together, without a separator between them. As I read the MenuElement specs, it sounds like I should not get separators unless I have a "-" as part of the menu position, but I am not including that and getting separators anyway.

How do I avoid the separators?

Thanks.

Guy
This topic has been closed for replies.

1 reply

dfranzen_camera_raw
Adobe Employee
Adobe Employee
June 15, 2007
Guy,

I can't reproduce the problem you describe, but it's hard to tell from your snippet what value you are actually passing for the new MenuElements' id -- perhaps it's not correct; I noticed a capitalization mismatch in the title and the ID you were using ("RejectImageMenuItem" vs. "rejectRawImage").

The following script adds three items with no separators between them:

#target bridge

var id1 = "testMenu1";
var id2 = "testMenu2"
var id3 = "testMenu3";

var cntCommand = new MenuElement("command", "RejectImageMenuItem", "at the end of Thumbnail", id1);

var cntCommand = new MenuElement("command", "SecondImageMenuItem", "after " + id1, id2);

var cntCommand = new MenuElement("command", "I'm Another Command", "after " + id2, id3);

-David Franzen
Adobe Bridge Quality Engineer
Adobe Systems, Inc.