hi
Here's autosaving for live programming.
#N canvas 177 115 826 579 12; #X msg 380 243 menusave ;; #X obj 380 128 metro 150000; #X obj 380 103 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 380 56 inlet; #X obj 470 103 * 60000; #X obj 470 78 inlet; #X obj 285 37 $2; #X obj 285 14 loadbang; #X obj 285 62 select 1; #X obj 380 155 t b b; #X obj 415 202 print a; #X msg 415 179 u: t: o:; #X text 102 349 arguments:; #X text 107 379 1 name of window to autosave (eg help-autosave.pd) ; #X text 109 410 2 autosave init 0/1 (off/on); #X text 103 446 inlets:; #X text 108 499 2 interval of saving in minutes (default 5 min); #X text 108 472 1 0/1 (off/on , default off); #X obj 380 271 s pd-$1; #N canvas 0 0 575 330 what 0; #X text 51 66 autosave.pd is an abstraction that autosaves your patch. ; #X text 50 248 see /pd/doc/1.manual/x2.htm#s7; #X text 181 273 for information on abstractions.; #X text 51 124 keep this file in your pd -path (eg /pd/extra/) , or in the same folder as your patch.; #X text 53 191 make an object like this [autosave nameofpatchtosave.pd 1]; #X restore 586 30 pd what is this?; #X connect 0 0 18 0; #X connect 1 0 9 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 4 0 1 1; #X connect 5 0 4 0; #X connect 6 0 8 0; #X connect 7 0 6 0; #X connect 8 0 2 0; #X connect 9 0 0 0; #X connect 9 1 11 0; #X connect 11 0 10 0;