It’s World Statistics Day! To honor the theme of the day, the JMP User Community is having conversations about the importance of trust in statistics and data. And we want to hear from you! Tell us the steps you take to ensure that your data is trustworthy.
Choose Language Hide Translation Bar
Community Manager Community Manager
Make a Menu. Share a Script.

Don McCormack, JMP Principal Customer Advocate, likes to share his work. He recently gave a tip on how to save a script to a new menu that you create. This lets you use the menu to execute the script against data where the column names and modeling types are the same as for the original analysis.

This is useful, for example, if you receive standard information every week about a product and want to repeat the analysis on the latest data. The script you save can be run against the latest data table you have open in JMP.

The steps are straightforward.

1. Save an analysis as a JMP script.

a. Under the analysis red triangle, select Script>Save to Script Window.

b. Copy the script into a buffer.

2. Create a main menu and its sub-menu. (After creation, the main menu will display on your menu bar and when you expand the new main menu you will see a new sub-menu that will execute your script.)

a. Select Edit>Customize>Menus and Toolbars.

b. Expand Main Menu. This lists the menus you will see on your JMP menu bar.

c. Right-click on the Menu item next to which you want your new menu to appear, then select either Insert Before or Insert After, according to the location you desire. Two items labeled Untitled Menu appear – a new main menu and its new sub-menu.

3. Name your new main menu.

a. Right-click the top-level Untitled Menu and select Properties. A Menu Item Properties window appears.

b. In the Caption box, type the name of your main menu. Then click OK.

4. Name your new sub-menu.

a. Right-click the sub-menu Untitled Menu and select Properties. A Menu Item Properties window appears.

b. Under Menu Item Type, select the Command radio button.

c. In the Caption box, type the name of your sub-menu, then click the OK button.

5. Add the script.

a. Select the Execute this JSL radio button.

b. Copy the script into the box next to Execute this JSL.

c. Click OK.

6. Save your new menu and sub-menu.

a. Click the Apply button in the top left corner of the screen, above the open Menus window.

b. Check your menu bar to see your new menu and verify that you can run the script from its new sub-menu.

JMP saves your work, so the next time you open JMP, the menus will be there. You can also restore the default menus at any time by selecting Edit > Customize > Revert to Factory Defaults.

Want more tips? Sign up for one of our live Mastering JMP Webcasts. We offer at least one every week into mid-May 2010.

Article Labels

    There are no labels assigned to this post.

Article Tags

Jeff Perkinson wrote:

You're right. JMP 9 has a new editor for customizing menus.

You can learn about JMP 9 here:


Kathy Hall wrote:

This didn't seem to work in JMP 9, as some of the buttons have moved. Any chance this page can be updated?


Jay Lee wrote:

After running an analysis save the script to a Script Window.

Select the script text and copy it.

Open a new data table.

Click the hot spot in the top left and select new property/script.

That action will open a window titled "Table Property/SCript for untitled.

Name your script.

Paste the script text (from your clipboard).

Click OK.

That's it.

Not quite the same thing but if you save the Script Window from Step 1, you'll only add the script to a Data Table one time.

I keep a folder with useful scripts.

As you can tell, I haven't much experience with scripting but have learned what works for me. I plan to learn more about scripting this year. Hope this adds to the discussion.


Gail Massari wrote:

Glad you find custom menus useful. Please see my response above and stay tuned.


Gail Massari wrote:

The custom menu capability is not available on our Mac platform. We are looking into offering it in a future software release.


MS wrote:

Nice and very useful feature! Seem to be lacking in JMP 8 for Mac though. Any chance that menu customization will make it into future versions of JMP for Mac?

Or at least a script menu a la the applescript menu found in many mac applications (and btw I would love to have some applescript support for JMP again, the combination of JSL and systemwide scripting would be a killer tool).


Stefan Keydel wrote:

This is a very cool tip! I'm using JMP 8 for Mac, and I don't see the option to customize my menu; how can I do this on the Mac version?




Tools to Help Teach JMP - JMP Blog wrote:

[...] If you donâ t know how to add menus, please see these instructions. [...]