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
Prev Previous Post   Next Post Next
  #2  
Old 04-05-2008, 07:25 AM
m021478 m021478 is offline
Registered User
 
Join Date: Mar 2008
Posts: 8
I think I got it figured out....can someone confirm that the following code will mount my external hard drive ("Macintosh HD Clone") prior to running SuperDuper, and will also unmount the drive after the cloning process has completed...

Code:
-- SuperDuper! scheduled copy script template (c) 2005-2008 by Bruce Lacey. Published by Shirt Pocket.
-- Script by Dave Nanian and Bruce Lacey

on beforeRunningCopy()
	tell application "Finder"
		if not (exists the disk "Macintosh HD Clone") then
			try
				do shell script "diskutil mount `disktool -l | grep 'Macintosh HD Clone' | sed 's/.*\\(disk[0-9s]*\\).*/\\1/'`"
			end try
			
			repeat while not (exists the disk "Macintosh HD Clone")
				delay 1
			end repeat
		end if
	end tell
end beforeRunningCopy

on afterRunningCopy()
	delay 2
	
	tell application "Finder"
		if (exists the disk "local_home_backup") then
			eject "local_home_backup"
			delay 2
		end if
		eject "External HD"
	end tell
end afterRunningCopy
Thanks!
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
Windows equivalent to SuperDuper!? jreffner General 21 08-13-2009 05:36 PM
Help relating to replacing an internal drive Nigell General 1 03-01-2007 01:39 PM
Best process to replace internal hard drive using SuperDuper!? emikysa General 26 02-09-2007 05:03 PM
Formatting an external hard drive for both Mac and PC Mary Grimsley General 5 11-25-2006 02:40 PM
Long Hang While Copying BackerUpper General 4 06-12-2006 08:26 AM


All times are GMT -4. The time now is 10:05 PM.


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