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


Opens a script by name.

Component Version macOS Windows Linux Server iOS SDK
ScriptWorkspace 7.4 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "ScriptWorkspace.OpenScript"; ScriptName )   More


Parameter Description Example
ScriptName The name of the script to select.
Must be visible in the left list of scripts in Script Workspace.


Returns OK or error.


Opens a script by name.
The script list does not need to be visible.


Open a script in a second:

Set Variable [ $r ; Value: MBS( "Schedule.EvaluateAfterDelay"; 1; "MBS( \"ScriptWorkspace.OpenScript\"; \"Test Script\" )" ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 13th August 2017, last changed 16th November 2023

ScriptWorkspace.LineCount - ScriptWorkspace.ScriptNames