#5
|
|||
|
|||
Okay that worked. For posterity, here's what I did:
I have two internal drives, Sam & Max. I want to back them up on demand to an external drive ("MyBook") via an Automator Script. I want to leave this script running unattended after I leave for the night and have my computer sleep as soon as SuperDuper is done. 1) I create the SuperDuper jobs I want to run. I make sure the padlock icon is unlocked to allow the job to run unattended for both jobs. 2) I create an automator job that triggers the "Sam" job first. In a "Run AppleScript" workflow item: Code:
tell application "SuperDuper!" run using settings "~/Library/Application Support/SuperDuper!/Saved Settings/Backup Sam to MyBook.sdsp" without user interaction end tell 3) I create a second automator script that triggers the "Max" job. Like the "Sam" job, create a "Run Applescript" workflow: Code:
tell application "SuperDuper!" run using settings "/Users/ixnayus/Library/Application Support/SuperDuper!/Saved Settings/Backup Max to MyBook.sdsp" without user interaction end tell 4) Open TextEdit and write "open " and then drag "SuperDuper Max to MyBook.app" onto it. You'll get a long command: Code:
open /Users/ixnayus/Library/Application\ Support/SuperDuper\!/Saved\ Settings/SuperDuper\ Max\ to\ MyBook.app 5) Here's an important step. You need to set permissions on the shell script so SuperDuper can open it without complaining. From the terminal: Code:
chmod 777 ~/Library/Application\ Support/SuperDuper\!/Saved\ Settings/Backup\ Max\ to\ MyBook.sh" 7) Open the "Max" job in SuperDuper. Click "Options" then "General" and select "Sleep Computer" under "On successful completion". Save the job. You now have an automator script that fires off a chain of events resulting in your backed up data and a sleepy computer. Automator Backup Sam -> SuperDuper Backup Sam -> Shell - Open Automator Backup Max -> SuperDuper Backup Max -> Sleep computer TIP: if you have Growl installed (http://growl.info/), you'll be greeted with a quick message when you start your computer up on whether the jobs completed successfully or not. I hope this helps. Thanks, Dave, for pointing me in the right direction. |
Tags |
applescript, automator, scripting, unattended |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Server drive won't mount after backup | rhennosy | General | 1 | 11-09-2007 03:49 PM |
Backup failure on a certain file | bmat | General | 3 | 09-25-2007 09:06 AM |
How to verify a Scheduled Backup? | tuqqer | General | 3 | 12-06-2005 06:50 PM |
(Zero-length) File caused SuperDuper to abort backup | alancfrancis | General | 7 | 08-31-2005 10:42 AM |
Smart Backup Error | bill s | General | 20 | 02-04-2005 09:46 AM |