Do you know any way to forcing restart an Mac OS computer from code? I tried an small applescript code without result. Applications ask for shutdown to the user so the user coul
The official way is to send a system event to the login window process. Apple's Technical QA1134 even includes a code example.