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

HotKey.SetScriptWorkspaceOnly

Sets whether this should be limited to Script Workspace.

Component Version macOS Windows Linux Server iOS SDK
HotKey 10.2 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "HotKey.SetScriptWorkspaceOnly"; HotKeyRef; Value )   More

Parameters

Parameter Description Example
HotKeyRef The reference value for the hotkey as returned by HotKey.Register function. $hotkey
Value The new setting.
Pass 1 to limit to Script Workspace or 0 to allow it everywhere.
1

Result

Returns OK or error.

Description

Sets whether this should be limited to Script Workspace.
Currently only implemented for MacOS.

Examples

Make hotkey to run in Script Workspace only:

MBS( "HotKey.SetScriptWorkspaceOnly"; $HotKeyRef; 1 )

See also

Release notes

Blog Entries

This function checks for a license.

Created 16th March 2020, last changed 16th November 2023


HotKey.SetScript - HotKey.SetTag