

I could not get it to work on Lion, some syntax issues need to be resolved. Lastly, it looks like it may possible to write an Apple Script that does exactly what you want, here is a link to something that may be able to work with some modification. Run the script, you can treat it like any other Application. Name it what you like but be sure to set the file format to "Application" on the "File Format:" dropdown. wait 10 seconds adjust this time to meet your needs Open the AppleScript Editor application.A program like Network Drive Launcher would aid in automatically scripting and connecting to networked shares when you log in.Īlternatively you could write an Apple Script that would replace clicking on the iTunes icon to start iTunes, not ideal since you would have to click the script first. Perhaps by using the -config option.? If someone knows how, by all means, please reply.And easy solution would be to automatically have your network shares mounted for you when you log in.
#SLEEPWATCHER MAC RUN WHEN IDLE HOW TO#
However, I have no idea how to implement that. Even nicer would be if each user could specify what he wants the delay to be before the. The nice part about this implementation is that each user can specify what to do at idle time, instead of one implementation to rule them all (so to speak). If you want to test this to make sure it works, make -t at least 100 or 200 (10 or 20 seconds) to give yourself some breathing room for changing it back once you've discovered that it works. When I first created this, I wanted to test it to make sure that it worked, so I set -t in the first step to 10 instead of 18000 because I was impatient. (I added a line to tell it to fast-user-switch to the login screen.) Once you've saved your changes, remember to make the file executable by typing chmod +x. idle, and add whatever you want it to do when it's idle.
#SLEEPWATCHER MAC RUN WHEN IDLE INSTALL#
To make the magic happen, you download and install both the daemon itself and the StartupItem as described in the included instructions. I have now found a solution to my woes, in the form of SleepWatcher from Bernhardt Baehr, which is licensed under the GNU GPL. I am able to put it to sleep using the apple menu item, or by pressing Ctrl-Eject then the S key. This seems to be a common problem, according to the DssW Sleep Centre and Apple's own forums. Since 10.3.9 or thereabouts, my Mac has been unable to put itself into a deep sleep no matter what I set in the Energy Saver preferences panel - the monitors will turn off, but the fans don't spin down.
