script
Runs PRACTICE code from a file or text, waits for completion, and returns PRINT output. On failure, reports the failing command; dialogs cannot be handled.
Instructions
Run a PRACTICE script from a file or from text and wait for it to end. Output from PRINT is returned. If it stops on an error the reply gives the failing command, and commands before it have already taken effect. A script that opens a dialog cannot continue, because nobody can click it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments passed to the script. | |
| path | No | Absolute path of a .cmm script. | |
| text | No | Script text, used when there is no file. | |
| wait_s | No | How long this call waits before replying Running. The work continues either way. | |
| deadline_s | No | Limit for the whole operation. Raise it for slow work such as flash programming. |