Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

can I specify a time to mount a drive?

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)

Posted on Jun 28, 2012 6:55 PM

Reply
Question marked as Best reply

Posted on Jun 28, 2012 8:56 PM

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.

5 replies
Question marked as Best reply

Jun 28, 2012 8:56 PM in response to harvey waxman

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.

can I specify a time to mount a drive?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.