Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can the contents of the Palettes menu be refreshed (preferably programmatically) without restarting the Front End?

When droppping a new palette notebook into $UserBaseDirectory/SystemFiles/FrontEnd/Palettes, it will appear in the Palettes menu after restarting the Front End. How can I make it appear there without restarting the front end?

When using the Palettes -> Install Palette... feature, this refresh happens automatically, so I assume it must be possible. The source of the installation dialog notebook is available in $InstallationDirectory/SystemFiles/FrontEnd/SystemResources, but I did not manage to figure out how it works yet.

share|improve this question
I think it is already (although tangentially) answered here – Dr. belisarius Jul 21 '12 at 15:00
@belisarius Good find! – Szabolcs Jul 21 '12 at 15:10
up vote 8 down vote accepted

You can use the following command to programmatically refresh the contents of the menus in Mathematica:

MathLink`CallFrontEnd[FrontEnd`ResetMenusPacket[{Automatic, Automatic}]]

This was mentioned by John Fultz in this MathGroup post as well as this answer.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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