Menu.GetScriptName
------------------

Queries the script name of the script to be run if menu item is selected.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Menu](component_Menu.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Menu.GetScriptName"; menu ) 

**MBS**( **"Menu.GetScriptName";** /\* Queries the script name of the script to be run if menu item is selected. \*/  
**$menu**) /\* The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| menu | The reference to the menu. Please create one with [Menu.CreateMenu](MenuCreateMenu.md). | $menu |

### Result

Returns script name or error.

### Description

Queries the script name of the script to be run if menu item is selected.  
### See also

- [Menu.CreateMenu](MenuCreateMenu.md)
- [Menu.GetScriptFileName](MenuGetScriptFileName.md)
- [Menu.SetScriptAction](MenuSetScriptAction.md)
- [MenuItem.GetScriptName](MenuItemGetScriptName.md)

This function is free to use.

Created 18th August 2014 , last changed 31st August 2014

  
[Menu.GetScriptFileName](MenuGetScriptFileName.md) - [Menu.GetShowsStateColumn](MenuGetShowsStateColumn.md)

[HTML Version](MenuGetScriptName.shtml)