How To Script a Max Application to Automatically Open
Hi,
I have a max patch that needs to be able to reopen itself incase it crashes or the computer is turned off.
Could anyone offer any advice on how to script this?
I see there's an option to include a script when the max file is built as a standalone application. Would it be as simple as attaching the script? Or would the script need to be activated somehow?
Appreciate any help I can get.
Don't You think it would be helpful if You mention
which operating system You run.
I don't think windows would understand apple script,
and mac cmd
It's running on a mac!
Then easiest way would be to make a standalone
and auto run it on boot.
Example apple script :
tell application "TextEdit" to activate
Compile that replacing "TextEdit" with the name of the standalone,
save the script as app and add to login items.
If You have to use max patch then it would be a bit different,
here one example :
do shell script "open ~/Desktop/'My Patch.maxpat'"
that would start Max ( version which is currently set to open
files of type .maxpat) and then the file.
But using standalone would be more reliable