View Full Version : Resume after reboot

08-08-2011, 04:04 AM
Dave -

I schedule an SD backup every evening and get SD to shut down my iMac after it's done. When I return to my iMac in the morning there is the SD window - presumably because of Lion's 'resume' feature. Is there a way you know of that this can be turned off on a 'per app' basis or is it a question of somehow building in a short delay between quitting SD and shutting down a Mac in this scenario?


08-08-2011, 09:27 AM
We already do have that delay, Tim. Perhaps use 'sleep' instead?

10-31-2011, 04:00 PM
I also run SuperDuper! when I'm done with my Mac, having SuperDuper! shutdown the Mac when it's done. Like Tim, when I start up the Mac the next day, Lion's resume would start SuperDuper!. I got around this problem by having SuperDuper! run a shell script when it's done, rather than shutdown the Mac. The script is very simple - it issues an Applescript command to Quit SuperDuper!, then issues a command to shutdown the computer in two minutes. The two minute delay is to allow SuperDuper! time to shutdown so it's not running when the system shuts down.

The script contains only these three lines:

#! /bin/sh
osascript -e 'tell application "SuperDuper!" to quit'
shutdown -h +2

(If you don't know how to create a shell script, put those three lines in a plain text file. Then make the file executable via the Terminal command
chmod +x pathtofile

I have noticed that an error appears in the SuperDuper! log, related to the shutdown command. I've copied it below. Perhaps Dave can shed some light on it:

| 04:31:52 PM | Info | PHASE: 3. After Successful Copy
| 04:31:52 PM | Info | ...ACTION: Restoring Spotlight state on Little Bear
| 04:31:52 PM | Info | ......COMMAND => Restoring Spotlight search indexing state on Little Bear
| 04:31:53 PM | Info | /Volumes/Little Bear:
| 04:31:53 PM | Info | Indexing enabled.
| 04:31:53 PM | Info | Indexing enabled on Little Bear
| 04:31:53 PM | Info | ...ACTION: Running shell script SuperduperShutdown.sh
| 04:31:53 PM | Info | ......COMMAND => Invoking After Copy shell script: /Users/David/Library/Application Support/SuperduperShutdown.sh
| 04:31:54 PM | Info | Shutdown at Fri Oct 28 16:33:54 2011.
| 04:31:54 PM | Error | shutdown: [pid 5279]