Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General

Thread Tools Rate Thread Display Modes
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!"
--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"
eject disk "Music Backups"
end tell
end tell


Reply With Quote
Old 07-27-2005, 04:44 PM
edoates edoates is offline
Registered User
Join Date: Jul 2005
Posts: 44
SU Scripts: answered my own question.

I added the following to the beginning of the script:
tell application "Finder"
open document file "Backup Music.sds" of folder "Saved Settings" of folder "SuperDuper!" of folder "Application Support" of folder "Library" of folder "edoates" of folder "Users" of startup disk
end tell

The clue came from the doc on page 16: (yes, I sometimes RTM)

You can also start SuperDuper! with a given set of settings by doubleclicking
the appropriate settings file in the Finder. By default, the settings
files are stored off your Home folder in Library/Application
Support/SuperDuper!/Saved Settings.

Anyway, added the above to the script start SuperDuper! with the saved settings I was going to set anyway. Since those settings mount the sparse image I am going to use, and not any used on prior occasions, it does exactly what I want.


Last edited by edoates; 07-27-2005 at 07:06 PM.
Reply With Quote
Old 07-27-2005, 06:53 PM
dnanian's Avatar
dnanian dnanian is offline
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Exactly! Just open the settings you want.

Glad you figured it out.
--Dave Nanian
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems automating backups with applescript and crontab kbradnam General 4 01-20-2006 07:40 AM
Scheduled backups? pdimesch General 4 06-13-2005 09:40 AM
Am I correct? SuperDooper cannot do incremental backups? ChicagoLarry General 1 06-11-2005 10:42 PM
Automatic multiple backups mrlatte General 1 04-30-2005 05:35 PM
Scheduled Backup Question rrhill General 1 04-14-2005 08:30 PM

All times are GMT -4. The time now is 09:16 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.