Saving the patcher automatically?

Jun 17, 2008 at 6:17pm

Saving the patcher automatically?

Hi,
I get crashes rather often with Max5, well i know it’s always like this a software version numbered like X.0x. Usually, i wait more time to buy a software, for a more stable version but… i just can’t go back to max4 after trying max5! Now max4 is looking so old and sad and etc.

So, can i do something in the patcher in order that it saves itself automatically every 4 minutes ?

Thanks,
Alexandre

#38456
Jun 17, 2008 at 9:30pm

Ok i found: “write” -> [thispatcher]

But is there a way to ask max if the patcher window have a dirty bit or clean bit ??
(in order to stop saving the patcher every 4 minutes if nothing changes for a long time)

Thanks a lot,
Alexandre

#134162
Jun 18, 2008 at 9:24am

theres probably a better way to do it, but one way i can think of to see if anything changed is by using the [filein] object to read the max patch as text, then compare lengths of the file, if the length changes, then save it. actually you could probably easily do this for most apps with applescript…

#134163
Jun 18, 2008 at 10:07am

try this mxj class…

…a bit rough but works.

#134164
Jun 18, 2008 at 10:32am

#134165
Jun 19, 2008 at 7:29pm

thank to all,

thanks martin, then i put this in my own mxj patcher object :

public void testdirty() {
MaxPatcher p = this.getParentPatcher();
outlet(1, “testdirty”, p.getWindow().isDirty() ) ;
}

Alexandre

#134166

You must be logged in to reply to this topic.