|
This is one of the tutorials of the Praat program. It assumes you are familiar with the Intro.
A script is a text that consists of menu commands and action commands. If you run the script (perhaps from a ScriptEditor), the commands are executed as if you clicked on them. You can read this tutorial sequentially with the help of the “< 1” and “1 >” buttons.
writeInfoLine
, appendInfoLine
)
for
, endfor
)
if
, then
, elsif
, else
, endif
)
for
/endfor
, while
/endwhile
, repeat
/until
)
@
, procedure
)
exitScript
)
form
/endform
, runScript
)
writeInfoLine
, appendInfoLine
, appendInfo
, tab$
)
fileReadable
, readFile
, writeFile
, deleteFile
, createFolder
)
runSystem
, environment$
, stopwatch
)
pause
, beginPause
/endPause
, chooseReadFile$
)
sendsocket
)
exitScript
, assert
, nowarn
, nocheck
)
editor
/endeditor
)
Also see the scripting examples.
appendFile
appendFileLine
appendInfo
appendInfoLine
assert
asserterror
asynchronous
chooseFolder$
chooseReadFile$
chooseWriteFile$
clearinfo
createFolder
deleteFile
demo
demoClicked
demoClickedIn
demoCommandKeyPressed
demoInput
demoKey$
demoKeyPressed
demoOptionKeyPressed
demoPeekInput
demoShiftKeyPressed
demoShow
demoWaitForInput
demoWindowTitle
demoX
demoY
editor
endeditor
endproc
exitScript
fileNames$#
fileNames_caseInsensitive$#
fileReadable
folderExists
folderNames$#
folderNames_caseInsensitive$#
goto
label
pauseScript
procedure
readFile##
readFile#
readFile$
readFile
readLinesFromFile$#
runScript
runSubprocess
runSystem$
runSystem
sleep
tryToAppendFile
tryToWriteFile
variableExists
© Paul Boersma 2000,2002–2004,2008,2010,2011,2013,2014,2017,2020