I have a problem. I own a WD Mybook mirror edition usb hard drive and when i turn computer on and work with it its normal but after 10 minutes of innactivity WD mybook goes to sleep mode. After returning to normal mode it shows all kind of hard drive errors and work is not possible until restart. I wonder if script can help me to every (x minutes) to “ping” or open folder on external USB WD mybook so it wont go into sleep mode. Thank you in advance for answers.
Browser: Firefox 3.0.4
Operating System: Mac OS X (10.5)
Yep you need to change localhost to whatever your HD is set to. i didn’t know what that was, maybe it’s an ip address… but change localhost to what it is then it should work. If not make sure you have the second display dialog say that or something to clue you that it’s not pinging.
You can’t ping a locally connected resource it’s purely for checking network connectivity. If you have your external HD connected via Firewire or USB there is nothing to ping so not sure where people were headed with that.
As for running a script after every X amount of time has passed you want to look at idle handlers.
When you save the script with the idle handler you need to save it as Application with the “Stay Open” option selected. Now you have an application that you have to actually launch. From there the idle handler kicks in and every 9 minutes it triggers.