apple script in max

tim cooper's icon

Hi,

I'm making an installation where under certain circumstances I want the computer to:

turn itself off and reboot
on reboot load a patch

Is applescript the best way and how do I achieve this?

Thanks a lot.

Tim

AudioMatt's icon

tap.applescript

he's also a tim.

Luke Hall's icon

You can use the [shell] and [aka.shell] externals too. The best way is to tell the computer to reboot using applescript and include your patch/app in the startup folder. Then you can use the System Preferences to determine what to run when you reboot.

Peter Castine's icon

There was a great little program called KeepItUp that did all you want and more--email alerts if your app crashes, automatic restarts of same, automatic shut-down/startup, logs… Unfortunately, when I tried their web site at it 404'd, so I don't know if it's still available. I'd give it a Google if I were you, it may be around somewhere else.

pdelges's icon

If you're about to do an installation, the following may be of some interest:
https://cycling74.com/forums/a-self-rebooting-system-for-max-msp

p