Music to go to sleep by

·

So the Webjay Alarm Clock works nicely in the morning, but what about going to sleep at night? Well, that's easy, in the Terminal:

sleep 3600 && osascript -e 'tell application "RealPlayer" to quit'

That waits for 1hr (3600 seconds) then quits RealPlayer. Obviously this would work with any other application too, like iTunes for example.