test/manually/recursiveRunScript.praat
raw| 1 | # recursiveRunScript.praat |
| 2 | # Paul Boersma 2020-03-20, 2023-06-08 |
| 3 | |
| 4 | # After you click Apply 20 times, |
| 5 | # there should be a neat error message, |
| 6 | # rather than a crash. |
| 7 | |
| 8 | beginPause: "Recursive runScript()" |
| 9 | comment: "Click Apply or OK 20 times, and see the message." |
| 10 | clicked = endPause: "Cancel", "Apply", "OK", 3, 1 |
| 11 | |
| 12 | if clicked == 1 |
| 13 | exitScript() |
| 14 | endif |
| 15 | |
| 16 | if clicked == 2 or clicked = 3 |
| 17 | runScript: "recursiveRunScript.praat" |
| 18 | endif |