On 3/11/19 8:29 PM, Federico Camara Halac wrote:
(unless you are talking about the 'first' save) it should be simply
[menusave( | [s pd-mypatch.pd]
I've never found a way of saving the patch to the current file, but if you
what do you mean by "current file" (as opposed to where [menusave( saves the patch to)?
want to save it to a new file, you can do this:
Did not how 'savetofile' worked until you mentioned it! Thanks!! I think this should do it:
[savetofile mypatch.pd /path/to/file( | [s pd-mypatch.pd]
since both you and liam use the [s pd-mypatch.pd] idiom, i'd like to point out that this might be tricky, as the [savetofile( might rename the patch... so the following will only work once:
<snip> [savetofile yourpatch.pd .( | [s pd-mypatch.pd] </snip>
a safer approach is to use [namecanvas]:
<snip> [savefile yourpatch.pd .( | [s $0-canvas]
[namecancas $0-canvas]
</snip>
gfmdsar IOhannes