Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Learjet035

macrumors 6502
Original poster
Feb 24, 2005
326
0
S. Floriduh
I have an external HD that is setup using time machine.

I notice a delay while the HD spools up from sleep on random occasions throughout the day that I'd like to avoid.

I don't really need hourly backups, Id just rather have the external drive kick on at night and do a back up.

Is there a way to do this?

A script maybe that will mount the drive at midnight or something like that?

Thank you!
 
Schedule the following in iCal should do it. Put the right disk name in here though...

tell application "Finder"
delay 2
if not (exists the disk "REPLACEMEWITHDISKNAME") then
do shell script "diskutil mount `disktool -l | grep 'REPLACEMEWITHDISKNAME' |
sed 's/.*\\(disk[0-9s]*\\).*/\\1/'`"
end if
end tell
 
Wow awesome!
Thank you I'll try it when I get home and let ya know.

Ps. Where exactly do I put that in iCal?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.