next up previous contents index
Next: The !tk Command: Execute Up: Scripts Previous: The !py Command: Execute   Contents   Index

The !tcl Command: Execute Tcl Script

Syntax: !tcl scriptfile args ...
This command is available only if the Tcl/Tk or Tcl-only plug-in has been loaded, and is not available under Microsoft Windows.

The command will execute a Tcl script (see 2.13), contained in the file given as an argument. Tk functions are not supported. Command arguments can be referenced in the script using the standard argc, argv mechanism. The language syntax is provided in documentation supplied with Tcl, and is described in several books. Much information can be found on the internet.

The scriptfile is expected to contain Tcl commands, and is linearly parsed and executed.

Stephen R. Whiteley 2022-05-28