AppleScript from Unity

Hi. Is there a way of executing an Apple Script from Unity ? . For Example, I want to shutdow my computer after closing a Unity application with Quit (I dont want anybody to use my computer other than for playing my game :slight_smile: ) . But, if I use another combination of keys only the application quit , for example quit + option.

Any ideas
htwarrior

You can use AppleScript in Unity by using a shell() command from JavaScript or Boo with the osascript command. Also there is a preference in the Unity Player settings that ignores Command-Q quits and lets you do your own quitting.

As for creating a kiosk, you probably want to not bother with an AppleScript type thing and read this technical note instead:

http://developer.apple.com/technotes/tn2002/tn2062.html

Hope that helps,
-Jon