test the dirty byte of a patcher window ?

Alexandre's icon

I was just wondering if there is a way to test the dirty byte of a patcher window, without programming in java... ?

In thispatcher help file i don't see that...

thanks,
Alexandre

(on an other topic last week, i posted the following patch to save a patch automatically every 4 minutes, but using some java method to test the dirty byte (in an mxj object explained here : https://cycling74.com/forums/index.php?t=msg&th=34302 )

Max Patch
Copy patch and select New From Clipboard in Max.

Luke Hall's icon

You can set the property using [thispatcher] ("clean" or "dirty") however I don't think you can test it. You do both in javascript using the wind.dirty property which doesn't involve diving into java.

lh

Alexandre's icon

ok thanks!