Topics

Obtaining directory listing

Neil Coffey <Neil.Coffey@...>
 

Is there any way of obtaining a list of files in
the current directory (or a particular directory) from
a Praat script? For example, for writing a script
which goes through all the wav files in the
current directory, processing each one in turn.

Neil

Paul Boersma <paul.boersma@...>
 

Is there any way of obtaining a list of files in
the current directory (or a particular directory) from
a Praat script?
Go to the "New" menu and choose

Create Strings from file list...

Then click Help for an example.

For example, for writing a script
which goes through all the wav files in the
current directory, processing each one in turn.
This is exactly what that example is about.
--

Paul Boersma
Institute of Phonetic Sciences, University of Amsterdam
Herengracht 338, 1016CG Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
phone +31-20-5252385