How to shut down the mac with Max ?

    Apr 17 2014 | 5:00 pm
    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...

    • Apr 17 2014 | 6:15 pm
      you can write applescript in max with "oscript -e" and the shell object or run an app from applescript, always with [shell]
    • Apr 17 2014 | 7:07 pm
      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" ?
    • Apr 17 2014 | 10:30 pm
      i think it's better to make an app from your applescript and launch it like
      some example :
      there are a lots of posts about that in the forum ;)
    • Apr 18 2014 | 8:55 am
      ...or use aka.power : ("gets the status of power source and perform sleep, restart, shutdown and logout.")
      simple and easy :-)
    • Apr 18 2014 | 1:10 pm
      or use the [] 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