FM.CurrentScriptName
--------------------

Queries name of current script.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FM](component_FM.md) | [5.1](newinversion51.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "FM.CurrentScriptName" ) ### Parameters

none

### Result

Returns script name.

### Description

Queries name of current script.  
Result is empty if no script is running.  
### Examples

Query script name and ID:

 MBS ( "FM.CurrentScriptName" ) &amp; " " &amp; MBS ( "[FM.CurrentScriptID](FMCurrentScriptID.md)" )  
### See also

- [FM.CurrentLayoutName](FMCurrentLayoutName.md)
- [FM.CurrentScriptID](FMCurrentScriptID.md)

This function is free to use.

Created 23th March 2015 , last changed 8th April 2020

  
[FM.CurrentScriptID](FMCurrentScriptID.md) - [FM.CurrentThreadID](FMCurrentThreadID.md)

[HTML Version](FMCurrentScriptName.shtml)