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

ScriptWorkspace.SetFocusToScript

Sets the focus to script.

Component Version macOS Windows Linux Server iOS SDK
ScriptWorkspace 16.4 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "ScriptWorkspace.SetFocusToScript" )

Parameters

none

Result

Returns OK or error.

Description

Sets the focus to script.

Examples

Define a hotkey to set focus to script:

Set Variable [ $Hotkey ; Value: MBS("HotKey.Register"; "F"; "option control command") ]
Set Variable [ $r ; Value: MBS("HotKey.SetEvaluate"; $Hotkey; "MBS( \"ScriptWorkspace.SetFocusToScript\" )") ]

See also

Release notes

Blog Entries

This function is free to use.

Created 10th September 2026, last changed 10th September 2026


ScriptWorkspace.SetBackgroundColor - ScriptWorkspace.SetFocusToScriptList


MarkDown version: ScriptWorkspaceSetFocusToScript.md