You can execute a script in three different ways:
Select the desired script and click on the Execute button on the left side of the script management widget.

Use a keyboard shortcut.

You can assign a keyboard shortcut to a script using the Configure button in the script management widget.

Use an editor key sequence. The script will be executed, if you type the assigned key sequence in the editor.

This method can be extended to a rather sophisticated kind of code completion. Let us assume that you have a written a script, which simply inserts the LATEX command
\textbf{}into the current document.document.insertText("\\textbf{%C}");If you now type the assigned key sequence
bfxin your text document, this key sequence will be removed and the script will be executed. It will insert\textbf{}and the cursor is placed between the braces.
What a comfortable and powerful method of code completion.