Re: Shutdown backup
Re: Shutdown backup
- Subject: Re: Shutdown backup
- From: Al Byrne <email@hidden>
- Date: Wed, 27 Dec 2000 15:17:22 +1100
With thanks to email@hidden, this is how I've now set up my iBook to do
the backup on shutdown thing. I have saved the Compiled Applescript into
'Macintosh HD:System Folder:Scripts:Finder Scripts', and fire it with a
keyboard shortcut using Leonard Rosenthal's OSA Menu (www.lazerware.com)
1. Set Retrospect's preferences to Quit on completion of backup (Special
tab: Preferences: Unattended: Quit)
2. Create and test an appropriate Retrospect Script that does what you need
3. Then, create an Applescript along the following lines:
display dialog "Shut down or restart?" buttons {"Shut Down", "Restart"}
default button 1
if the button returned of the result is "Shut Down" then
with timeout of (90 * 60) seconds
-- Give Retrospect PLENTY of time to do it's stuff
tell application "Retrospect"
back up ,
"Local Desktop:Macintosh HD:" to ,
"Dummy Backup File" using ,
"Dummy Backup" type Normal
-- These steps tell Retrospect to:
-- a.) identify the source volume to be backed up
-- b.) identify the destination
-- c.) identify the Retro Script to use, and
-- d.) identify the type of backup to carry out
end tell
wait application "Pery"
-- Waits for application with creator code of 'Pery' (Retro) to quit
-- Requires the 'Wait Application' OSAX.
-- Should be available at www.scriptweb.com
tell application "Finder"
shut down
end tell
end timeout
else
tell application "Finder"
restart
end tell
end if