Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

FM.CurrentScriptName

Queries name of current script.

Component Version macOS Windows Linux Server iOS SDK
FM 5.1 ✅ 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" ) & " " & MBS( "FM.CurrentScriptID" )

See also

This function is free to use.

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


FM.CurrentScriptID - FM.CurrentThreadID