Close Max standalone from a Max patch using Applescript (or something else)?
I have all my sensor inputs coming in to a standalone, and then piping via udpsend/receive to a patch opened in Max .
If I forget to quit the standalone first (i.e. if I close the Project or quit Max before I quit the standalone), then Max locks up. (Something to do with the udp connection perhaps?)
So what would be good is if I have a "shutdown" button in the main patch (shutdown (close) the project, not the computer!) that I can use to first close down the standalone and then the Max patch. (Yes, I can bring the standalone forward to quit it, but the point is that I forget! Out of sight etc etc)
I assume the the only way to do this is to use applescript, but tap.applescript no longer appears to work. I want to have a single button to do this (i.e. I don't want to have to open Terminal and run a script there). Is this even possible?
thanks in ignorance
David
David,
One idea is that you could send a message to your standalone from your main patch via udp that triggers the standalone to quit. ;max quit in a message box should do the trick.
-Ben
Cool! Simple and elegant. And very easy to implement. Thanks Ben!