Claris Resolve: Script Command for Removing a Menu Separator

This information was provided by Claris Corporation on 16 March 1998, and incorporated into Apple Computer's Tech Info Library.
The usual procedure for deleting a menu item is the use the three commands SELECT MENU, SELECT MENUITEM and REMOVE MENUITEM as follows:

SELECT MENU "MyMenu"
SELECT MENUITEM "MyMenuitem"
REMOVE MENUITEM

Menu separators, since they do not have a name, are added and deleted differently. You need to explicitly select the menu separator by using its number in order to delete it properly. The menu item number is determined by its position on the menu. In a standard Edit menu, for example, Undo would be 1, the menu separator 2, Cut 3 and so forth. To delete a menu separator, you need to use the SELECT MENU, SELECT MENUITEM NUMBER and REMOVE MENUITEM commands:

SELECT MENU "MyMenu"
SELECT MENUITEM NUMBER 2 {Here we are referencing the menu by its number which corresponds to its position on the menu (first item is 1 second item is 2, etc...)}
REMOVE MENUITEM
Published Date: Feb 18, 2012