I have a script that will run a QuickTime movie after a computer starts (every day), but the constant shutting down/restarting has been enough of a shock to the system that it is occasionally corrupting the directories on the hard drive. So I would like to trigger the script to run upon the system waking from sleep.
Perhaps this is really simple, but I am stumped, seeing no command for waking in the dictionaries of the Finder/System Events, etc.
You certainly must be having the computer wake up at a certain time everyday. All you have to do is set an event in iCal to execute an AppleScript to run the Quicktime movie. Have the event happen thirty seconds or so after your wake-up time.
Strange that you are having this system problem. I have the same setup on two Mac minis for four years with no problems. The Mac minis are connected to large screen LCD displays.
I have the energy saver prefs to turn on the Mac mini every morning and then launches an AppleScript app as a login item. The AppleScript first checks to see if it is Sunday, which if it is, shuts the computer down otherwise it opens the Quicktime document, goes full screen, then turns on looping.
At the end of the day at close of business an iCal event executes an AppleScript to quit Quicktime and shut the computer down.
This setup has run for four years now with no problem. I don’t think I’ve even run updates on the Mac minis.