View Single Post
  #1  
Old 07-27-2005, 02:30 PM
edoates edoates is offline
Registered User
 
Join Date: Jul 2005
Posts: 44
Scheduled SU backups

I have several SU backup scripts which do smart udpates to different sparse images. As SU starts up, it mounts the last sparse image to be used, then as it switches to the "settings" for the actual backup to be performed, it mounts that particular sparse image, so now I have two mounted images.

I added commands to the scripts to eject the image I know was just used, but it cannot know which "default" image was mounted when SU started up since I do manual SUs from time to time.

Is there a way when starting SU from a script to prevent it from loading any default settings, but wait for the script to tell it what to do?

Here is one of the scripts I am using:

____________

tell application "SuperDuper!"
try
--Wait until SuperDuper! is idle before loading and running the desired session
repeat while status is not idle
--Sleep # seconds is the best way to "wait" without using the CPU
tell application "System Events" to do shell script "sleep 5"
end repeat
if status is idle then
--Specify the saved settings as either an absolute path or just the name
run using settings "Backup Music" without user interaction
end if
--Wait until the session is done
repeat while status is running
--Sleep # seconds is the best way to "wait" without using the CPU
tell application "System Events" to do shell script "sleep 5"
end repeat
on error errMsg
display dialog errMsg & " See section 12 of the User's Guide for help with this script."
end try
--Once done, tell SuperDuper! to eject music backups and quit
tell application "Finder"
activate
eject disk "Music Backups"
end tell
quit
end tell

____________

Ed
Reply With Quote