I created an AppleScript to restart my Mac:
tell application "System Events" restart end tell
I put this script into Calendar.app and set it to start at 7.00. When I put script into calendar and click done button it will restart my OS over and over again. It's like the Mac is restoring the system to the pre-shutdown state, including re-launching any applications that were open at the time.
How can I stop it?