[PD] clear console command + create folder from Pd?

Hans-Christoph Steiner hans at at.or.at
Mon Nov 7 22:53:26 CET 2011


On Nov 7, 2011, at 4:35 PM, João Pais wrote:

> Hi,
> 
> is it possible to do the following in Pd?
> 
> - clear the console with some command sent to [s pd] (not with the shortcut)

pd isn't really aware of the console, so you need to send a message to the GUI:

[menu_clear_console(
|
[hcs/sys_gui]

> - is there any object that allows to create a folder (in all OSs)? I wanted to save files to a non-existing folder, but Pd doesn't create one.

You could probably use Tcl's mkdir and send it to the GUI:

[file mkidr /path/to/mynewfolder(
|
[hcs/sys_gui]

.hc


----------------------------------------------------------------------------

Looking at things from a more basic level, you can come up with a more direct solution... It may sound small in theory, but it in practice, it can change entire economies.     - Amy Smith





More information about the Pd-list mailing list