MetaDataQuery.GetScriptName
---------------------------

Queries name of script to call when shell is done.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MetaDataQuery](component_MetaDataQuery.md) | [8.0](newinversion80.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "MetaDataQuery.GetScriptName"; ShellRef ) 

**MBS**( **"MetaDataQuery.GetScriptName";** /\* Queries name of script to call when shell is done. \*/  
**$ShellRef**) /\* The reference number from the shell.e.g. $shell \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |

### Result

Returns script name or error.

### Description

Queries name of script to call when shell is done.  
### See also

- [MetaDataQuery.GetScriptFileName](MetaDataQueryGetScriptFileName.md)
- [MetaDataQuery.SetScript](MetaDataQuerySetScript.md)

This function is free to use.

Created 16th December 2017 , last changed 15th June 2021

  
[MetaDataQuery.GetScriptFileName](MetaDataQueryGetScriptFileName.md) - [MetaDataQuery.IsGathering](MetaDataQueryIsGathering.md)

[HTML Version](MetaDataQueryGetScriptName.shtml)