menu_state_off menu_specs mask ?pathname?
This command is the same as the menu_state_off command except that menu items with their disable set value ANDed with the mask are disabled. Otherwise the menu item is left in the current state.
menu_state_off