Narcolepsy is a script to "encourage" your Mac to sleep when idle. It's useful if your computer doesn't seem to obey the sleep setting in Energy Saver; Narcolepsy will put your computer to sleep when Energy Saver should! It will sleep after the amount of time set in Energy Saver, making adjustments easy. It is also designed to not sleep if iTunes is playing, if DVD Player is open, or if EyeTV is playing or recording (times when the computer might be "idle," but you are still using it). You can modify the script to remove these or add your own conditions to prevent sleeping.
Mac OS X 10.5 or later