|If you name a subpatch "fred" for instance, you can send messages to |"pd-fred". I've used it to add text comments to windows automatically, |but in principle you should be able to do anything that appears in a saved |Pd file (adding and connecting objects).
jip, the problem is more how to access a new window for example, when you go "pd menu-new;" the window pops up untitled .. when you start having several untitleds it will get tricky .. you can do pd menu-saveas or so, but that just pops up the save dialog and i couldnt find out yet how to pass the filename (= windowname) to saveas to do an automatic-save-as ...
-- I x d U . o r g