View Single Post
  #4  
Old 04-05-2008, 03:25 PM
m021478 m021478 is offline
Registered User
 
Join Date: Mar 2008
Posts: 8
Forgive the incorrect references...I'd obviously copied and pasted the code above from a previous thread I'd come across (and didn't replace the drive references in that code with the actual drive names I'll be using)...I tried using the code from the second post of this thread (replacing the 'External HD' portion with the correct hard drive references (which is Macintosh HD Clone), and it appears to have worked...

Can you confirm that this is the correct addition to the copy script I should apply (for an external drive named 'Macintosh HD Clone'):

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

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()

tell application "Finder"
if (exists the disk "Macintosh HD Clone") then
eject "Macintosh HD Clone"
delay 2
end if
delay 2

end afterRunningCopy
Reply With Quote