I wrote this to counteract my own obsessive hacking, but you may find it useful. 1.2 is hopefully much better. Some people have reported bad things happening when running RSIDock on a laptop and the computer going to sleepwhile RSIDock is running. I'm still waiting for my iBook to arrive, so 1.2 has still not been tested on laptops. RSIDock is considered under GPL, although some parts come from exaple code on Stepwise, so GPL may or may not be appropriate - I am not a License Guru.
Source code is available from the link below.
A lot of the improvements in 1.2 come from studying code from BigShow by Aaron Hillegass and code examples on Stepwise .