Seems that Apple has removed some limitations for optical drives in 10.9 Mavericks,
so these scripts are a little deprecated :-)
This is only useful if sleep by menu command works flawlessly ...
KWSleep for 10.7 - 10.8.x:
Basically consisting of 2 shellscripts: sleep.sh is running by launchd every 30 s, los.sh monitors changes in com.apple.PowerManagement.plist (add changed sleeptime in syspref to sleep.sh). The functionality is the same as in RIPscript - here as a 8kb-shellscript which run as root and therefore works also if no user is logged in ...
KWSleep Manual.pdf 210.36KB 27 downloads
R(est)I(n)P(eace) 3-(Apple)script for 10.7 - 10.8.x:
This Applescript compares the time since last user input with Sleeptime in Syspreferences, monitors network-traffic, finder activity, cpu-load, activity of disk utility and iTunes and - if idletime is greater than Sleeptime - sends your machine to sleep.
Install RIPLion.app.zip 109.17KB 402 downloads
RIP3Lion.app.zip 35.06KB 299 downloads
To add or change Progs/Values within the script (only tested in 10.7) use:
Open RIP 10.7x.app.zip 172.4KB 172 downloads