5 Replies Latest reply: Jun 30, 2012 10:37 AM by Camelot
harvey waxman Level 2 Level 2

I'd like a script that will mount a firewire drive at a specific time  (let's say 10pm) even if the computer is asleep.  I can get the ID from Disk Utility.

 

Possible?


iMac 2.4 GHz, Mac OS X (10.5.8)
Reply by Camelot on Jun 28, 2012 8:56 PM Helpful

There's nothing you can do when the machine is asleep. Period.

 

The only thing you can do is schedule (via Energy Saver preferences) your machine to wake at the appropriate time (or shortly before), at which point your request is just a matter of normal task scheduling. For this you should look at launchd since it is the preferred way of scheduling tasks to run at specific times.

 

Either way, AppleScript can't handle the task scheduling for you - it can perform the tasks you want, but it can't handle the scheduling component.

All replies

  • Camelot Level 8 Level 8
    expertise.macosx
    Mac OS X

    There's nothing you can do when the machine is asleep. Period.

     

    The only thing you can do is schedule (via Energy Saver preferences) your machine to wake at the appropriate time (or shortly before), at which point your request is just a matter of normal task scheduling. For this you should look at launchd since it is the preferred way of scheduling tasks to run at specific times.

     

    Either way, AppleScript can't handle the task scheduling for you - it can perform the tasks you want, but it can't handle the scheduling component.

  • harvey waxman Level 2 Level 2

    Not the answer I had hoped for but I do thank you for the information.

  • Camelot Level 8 Level 8
    expertise.macosx
    Mac OS X

    I have to wonder, why do you care about mounting the disk if the machine is asleep - it's not like anything else is going to happen while the disk is mounted, either.

  • harvey waxman Level 2 Level 2

    Good question.  I use Carbon Copy Cloner to backup every night.  I ended up having iCal run a script to mount the drive five minutes before the scheduled backup.   

  • Camelot Level 8 Level 8
    expertise.macosx
    Mac OS X

    Well that still requires the machine to be awake, which can be handled via Energy Saver preferences.