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

ScriptWorkspace.OpenScript

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

Parameters

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

Result

Returns OK or error.

Description

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

Examples

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