Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

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 8th October 2019


ScriptWorkspace.LineCount - ScriptWorkspace.ScriptNames

💬 Ask a question or report a problem