14
$\begingroup$

I would like to do the opposite of what is described here. So rather than add a menu item I would like to programmatically remove one (or more). So given a knowledge of the structure of the menu *.tr file

enter image description here

...I am looking for something like RemoveMenuCommands such that if I wanted to remove Format > Clear Formatting I could enter something like this:

FrontEndExecute[RemoveMenuCommands[{"Format", "Clear Formatting"}]]

Does anyone have any thoughts?

$\endgroup$
  • 4
    $\begingroup$ Good question. Could be extended to how to remove an installed palette as there is only an install menu and not an uninstall one. Removing a palette takes more than removing the menu item, though. $\endgroup$ – Sjoerd C. de Vries Nov 13 '13 at 13:17
  • $\begingroup$ @SjoerdC.deVries I find removing a palette ok thought would be nice if it could be done with an uninstall menu option. Removing a menu option requires file editing (at the moment) $\endgroup$ – Mike Honeychurch Nov 13 '13 at 20:30
7
$\begingroup$

WRI tech support advise that it is not currently possible to programmatically remove items from the menu.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.