Menubar.ListMenuCommands
------------------------

Lists all menu commands.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menubar](component_Menubar.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Menubar.ListMenuCommands" ) ### Parameters

none

### Result

Returns list or error.

### Description

Lists all menu commands.  
The result is a list with a line for each menu entry. The data is separated with tab character. First in each row is the command ID followed by the menu item names for the path to the item.  
Works well in FileMaker 12 or newer, but not in FileMaker 11.  
### Examples

List menu commands:

 MBS ("Menubar.ListMenuCommands")  
Write commands to disk:

 MBS ("[Text.WriteTextFile](TextWriteTextFile.md)"; MBS ( "Menubar.ListMenuCommands" ); "/Users/cs/Desktop/menu.txt")  
### See also

- [Menubar.HasMenuCommand](MenubarHasMenuCommand.md)
- [Menubar.IsMenuCommandChecked](MenubarIsMenuCommandChecked.md)
- [Menubar.RemoveMenuCommand](MenubarRemoveMenuCommand.md)
- [Menubar.RunMenuCommand](MenubarRunMenuCommand.md)
- [Menubar.SetMenuCommandShortcut](MenubarSetMenuCommandShortcut.md)
- [Menubar.SetMenuCommandTitle](MenubarSetMenuCommandTitle.md)
- [Menubar.SetMenuCommandVisible](MenubarSetMenuCommandVisible.md)
- [Text.WriteTextFile](TextWriteTextFile.md)

### Blog Entries

- [Define a hotkey to copy field name for layout objects in FileMaker](https://www.mbsplugins.de/archive/2024-11-09/Define_a_hotkey_to_copy_field_/monkeybreadsoftware_blog_filemaker)
- [Tip of the day: Show debugger in FileMaker from within a script](https://www.mbsplugins.de/archive/2016-06-17/Tip_of_the_day_Show_debugger_i/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2020, Seite 28](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

This function checks for a license.

Created 15th November 2014 , last changed 15th September 2016

  
[Menubar.IsMenuCommandChecked](MenubarIsMenuCommandChecked.md) - [Menubar.RemoveMenuCommand](MenubarRemoveMenuCommand.md)

[HTML Version](MenubarListMenuCommands.shtml)