View Single Post
  #25  
Old 03-28-2007, 10:18 PM
dfbackup dfbackup is offline
Registered User
 
Join Date: Jan 2007
Posts: 6
I have this same issue on my two macs (PPC & Intel) with a network backup. I use this applescript to mount the drive. It opens an alias (in my ~/Library/Favorites) I have stored to the network drive. As long as you have the user and pass stored in the keychain this will require no user input. Just replace the "alias-file-name" below with the name of your alias in your favorites folder. The script will input your correct username.

set thePath to ((get path to startup disk) & "Users:" & ¬
(do shell script "echo $USER") & ¬
":Library:Favorites:alias-file-name") as string

tell application "Finder"
open alias thePath
activate
end tell

And then I use this script to unmount it. Be sure to put the name of the network drive here, not the alias name.

tell application "Finder"
try
eject disk "name-of-network-disk"
end try
end tell

You can add these directly into CopyJob.applescript inside your schelduled backup package. Just don't forget to toggle the checkbox for the script inside the SuperDuper! interface to recompile the script.
Reply With Quote