User Guide/The Script Controller: Difference between revisions
m (1 revision: Initial import) |
m (Text replace - "S_TOOLS-STx" to "{{STX}}") |
||
Line 2: | Line 2: | ||
[[File:ws_sc.png]] | [[File:ws_sc.png]] | ||
The Script Controller provides a convenient way to run scripts from the Workspace. You can also open the Console, a command line interface to an | The Script Controller provides a convenient way to run scripts from the Workspace. You can also open the Console, a command line interface to an {{STX}} macro shell. | ||
====Hiding and showing Script Controller==== | ====Hiding and showing Script Controller==== | ||
Line 29: | Line 29: | ||
====Debugging a script==== | ====Debugging a script==== | ||
Check the Debug checkbox and when you run the script, the | Check the Debug checkbox and when you run the script, the {{STX}} debugger automatically opens. | ||
====Command History==== | ====Command History==== | ||
Line 37: | Line 37: | ||
====The Console==== | ====The Console==== | ||
If you press the Console button, the Console application is started. The Console is a command line interface to an | If you press the Console button, the Console application is started. The Console is a command line interface to an {{STX}} shell. | ||
The Console can | The Console can | ||
Line 47: | Line 47: | ||
The Console was added to | The Console was added to {{STX}} in version 3.9. It is currently in it's baby shoes, so please be nice to it, and report any misbehaviour. | ||
[[Category:User Guide]][[Category:Workspace]] | [[Category:User Guide]][[Category:Workspace]] |
Revision as of 17:12, 5 April 2011
The Script Controller provides a convenient way to run scripts from the Workspace. You can also open the Console, a command line interface to an STx macro shell.
Contents
Hiding and showing Script Controller
Blend the Script Controller in and out with the Workspace menu item Scripts > Show Scripts.
Creating a new script
You can create new script in one of the following ways:
Running a script
To run a script from the Script Controller, do the following:
- Select a Script File by clicking on the Script File button and selecting a script from disk.
- Choose the Macro to be run from those available in the Macro combobox.
- Add any arguments the selected macro requires to Arguments.
You can also store scripts and their arguments in the Application & Setup Tree under the entry Scripts.
Debugging a script
Check the Debug checkbox and when you run the script, the STx debugger automatically opens.
Command History
A history of arguments passed to the script is stored and can be retrieved by selecting an entry from the Arguments combobox.
The Console
If you press the Console button, the Console application is started. The Console is a command line interface to an STx shell.
The Console can
The Console can not
Console shortcuts
The Console was added to STx in version 3.9. It is currently in it's baby shoes, so please be nice to it, and report any misbehaviour.