Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the '10.5: Run a Time Machine backup then shut down' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Run a Time Machine backup then shut down
Authored by: wallybear on Fri, Jun 27 2008 at 2:53PM PDT
It's fairly simple: in the script, just replace the lines

	ignoring application responses
		tell application "loginwindow" to «event aevtshut»
	end ignoring
with this single line

	tell application "Finder" to eject disk "YourTimeMachineVolume"
(obviously replace YourTimeMachineVolume with the real name of your Time Machine disk)
Moreover, if you want the script not to launch the backup (because you prefer to launch it by TM menu) but only unmount the volume when Time Machine has finished, remove the following line from the script:

   do shell script "/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper > /dev/null 2>&1  &"


[ # ]