How to shut down the mac with Max ?
Hello,
I would like to quit the apps and shut down the Mac with a command in Max.
My Mac mini is into a sculpture and it have no keyboard and no mouse. Just an Arduino with sensors to pilot it. I have made an Applescript, it works good, but how can I trig it from Max?
Os 10.9.2
Max 6.1.6
I try Tap Tools but there is no object, just the help file...
you can write applescript in max with "oscript -e"
and the shell object
or run an app from applescript, always with [shell]
Thank you YOPLA,
But what is the syntaxe? Could I copy a script with the same form just after "oscript -e" ?
Something like
oscript -e say "do you want to quit?" using "Trinoids"
?
i think it's better to make an app from your applescript and launch it like
some example :
this is the shell external
https://cycling74.com/tools/bernstein-shell/
there are a lots of posts about that in the forum ;)
...or use aka.power :
http://www.iamas.ac.jp/~aka/max/#aka_power
("gets the status of power source and perform sleep, restart, shutdown and logout.")
simple and easy :-)
m
or use the [jit.gl.lua] object, watch for the os.execute() function in a script, with "shutdown" as argument...
i didn't try yet but i think it will work