On 2013-01-27 16:25, Sebastian Valenzuela wrote:
Hi list,
My Pd patch creates and saves new audio files to a designated folder on my desktop. I would like to have Pd delete these files every time I open my patch ([loadbang]).
I've heard the [shell] object is a possibility, but i'm not too keen on terminal commands or how they will pertain to [shell]...
Can anyone please give me an example of a command I would send to [shell] to delete all files within a specified folder on my desktop? If this isn't the best way to do it, is there another possibility through Pd?
You can use pdlua for this kind of thing. See the attached patch. Right-click inside the [deletefile] object to open deletefile.pdlua in an editor.
Martin