View Single Post
  #5  
Old 04-11-2005, 01:47 PM
kbradnam kbradnam is offline
Registered User
 
Join Date: Feb 2005
Location: Davis, CA
Posts: 25
Hi,

The lack of mounting/unmounting external drives was a bit of an issue for me too. I fixed this by amending the backup applescripts to automatically mount the backup drive if it was not mount and then unmount it when finished.

To do this I prepend the following to the start of my daily bakck up script (assumes your backup disk is called 'local backup'):

----------------------------------------------------
property diskname : "local backup"

tell application "Finder"
if not (exists the disk diskname) then
do shell script "diskutil mount `disktool -l | grep 'local backup' | sed 's/.*\\(disk[0-9s]*\\).*/\\1/'`"
delay 1
end if
end tell

delay 2
----------------------------------------------------

Then I add the following at the end of the script.

----------------------------------------------------
tell application "Finder"
if (exists the disk "local backup") then
eject "local backup"
delay 2
end if
delay 2
----------------------------------------------------


Hope this helps.

Keith
Reply With Quote