Forums > MaxMSP

js, autowatch & external editors

Jun 14 2010 | 1:00 pm

Perhaps it’s just me, but autowatch doesn’t seem to be working as it should on my machine anymore if I edit the file using an external editor.

If I edit a js file in max and save the file, the js object recompiles the file as expected, but not using other editors.

Did I miss something? I’m sure it used to work, been using JS in Max for some time (but not edited anything for a while)

I’m an OS luddite running 10.4.11 and Max 5.1.4 on a Macbook Pro.



Jun 14 2010 | 3:11 pm

Hello Jules,

I noticed this morning something similar.
I had a problem with pattrstorage and autowatch attribute.
I didn’t seem to work in a standalone.
So I manually filewatched the preset file using the dedicated [filewatch] object.
Same problem, the filewatch object doesn’t work at all in a standalone.
So I guess there’s a bug somewhere in max regarding filewatching.

Steps to reproduce :

1. open filewatch.maxhelp
2. build as an application
3. open it and follow the help file instructions

Results :
nothing happens when changing a file in a external editor.

Expected Results :
Changing the file in an external editor should warn max and bang filewatch outlet.

Specifications :
Mac OS 10.5.8
Macbook Pro 2.4GHz Intel Core 2 Duo
Max 5.1.4

As suggested above, I have a similar bug with pattrstorage and autowatch attribute in standalone, I’ll make an example ASAP.



Jun 17 2010 | 5:55 pm

I’m experiencing the same problem with autowatch. In my case, it only is a problem with Mac-built standalones. If I open the original maxpat file, autowatch works as expected when set to @autowatch 1. When I open the standalone built from that maxpat, autowatch no longer works. It’s finding the json file just fine when the app opens, and if I quit the app after modifying the json file, it will reflect the changes when the app is relaunched. It just won’t reflect the changes while the app is still open.

I also have the same app built on a PC and autowatch works as expected on that platform.

Max 5.1.4 Mac/Win

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > MaxMSP