View Single Post
  #9  
Old 05-01-2006, 09:58 AM
bethri bethri is offline
Registered User
 
Join Date: Apr 2006
Posts: 7
That's what I figured (and tried) but:

Code:
on beforeRunningCopy()

-- Put your own code here that should execute just before running the copy.
-- Inserted to mount clone (G5Backup) before copying

Property diskname : "G5Backup"

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

delay 2

-- End of insertion

end beforeRunningCopy
gives me, 'Expected “end” but found “property”.' when I try to compile. Sorry I can't fix this myself but with my limited knowledge of Applescript, I can't see how to change this...
Reply With Quote