written by Daniel

 

Working with scripts

 

After starting Praat, the specified script can be loaded like a normal textfile

 

Loading a script

With the menu command:

Control --> Open script...

A Script editor window will open. In this window, with the menu command:

Run --> Run

the content of the script is executed.

 

 

Connecting the content of a script to a button

If it is neccessary to call the script more than a few times, it is advised to connect the script to a user button (appears in the right part of the PRAAT object window). The script can be run after a simple mouse click instead of loading it every time with the described procedure.

In the menu line of the newly appeared script editor window (the window where the loaded script is shown), click:

File --> Add to dynamic menu

In "class1" it is neccessary to define the object class, where the script should work at. Later, selecting a object of the defined class will show the button on the right side of the object window. Selecting a object of a different class will HIDE the button on the right side of the object window.
In "command" the button can be named with a freely choosable label.