Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  System / Utilities  |  Maintenance / Optimization  |  SleepWatcher  |  Excellent utility

SleepWatcher

SleepWatcher

execute shell scripts upon sleep, wakeup, idleness

Version:  2.0.5

   [ Views: 1143 ]

Excellent utility

Feedback Type:  Review

Contributed by: grikdog Wednesday, January 11 2006 @ 10:56 PM PST

Product Platform: MacOSX

Used Product For: Less than a month

Recommend Product: YES

What a great idea! As for how to use it... Install the SleepWatcher.pkg, then install the SleepWatcher StartupItem.pkg. Launch TextEdit. Enter these lines:

#!/bin/sh
osascript -l AppleScript -e 'tell Application "Finder" to say "Just going to sleep now, ok?"'


(Don't enter these lines ;-)
Save the file as ~/.sleep and wait about 5 minutes for your screensaver to launch. Listen.

That's it. The rest is only limited by imagination. For starters, study the man page: man sleepwatcher Then open /Library/StartupItems/SleepWatcher/SleepWatcher in TextEdit and find the line that starts SleepWatcher. The man page suggests that you can do A LOT MORE than minimum, but the default configuration is powerful.

In my own .sleep file I launch a script to fire off the PostgreSQL dumpall command, if it hasn't run yet. Screensaver time is the perfect time to make a database backup, at least for small personal databases.   
Overall Rating:

Ease of Use:

Support:

Features:

Quality / Stability:

Price:

Rate this Review

Was this Review helpful? Yes | No

Comments

0 comments |

No user comments.