Patch only opens as text in Max 5.0.1

Vivian Caccuri's icon

Hi everyone,
I made this very simple patch, that apparently had no bugs and was working and opening fine.
The only unusual event was that my Mac rebooted while the patch was open and working.
After that, I can only open it as text
here's the patch:
http://www.vcaccuri.net/dissimulado.maxpat
http://www.vcaccuri.net/dissimulado.maxpat.zip

did anyone have a similar problem? Could anyone help me, please?

thanks
Vivian C

Luke Hall's icon

You have badly formatted JSON. Open the file in a text editor and then at the very bottom of the file add two new lines. The first should have a tab indent and then a }closing brace}. The second should just have a }closing brace}. Save the file with a .maxpat extensiom and you should be good to go. If you have problems like this in the future search for a JSON validator online and paste in your code to see where the mistake is.

lh

ch's icon
Max Patch
Copy patch and select New From Clipboard in Max.

don't know why, but there were some '}' missing in your file.

Vivian Caccuri's icon

Thanks Luke Hall and Ch; it works

bests
Vivian