[PD] Save patch with internal message

IOhannes m zmölnig zmoelnig at iem.at
Mon Mar 11 21:07:07 CET 2019

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:

[savetofile yourpatch.pd .(
[s pd-mypatch.pd]

a safer approach is to use [namecanvas]:

[savefile yourpatch.pd .(
[s $0-canvas]

[namecancas $0-canvas]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190311/45942218/attachment.sig>

More information about the Pd-list mailing list