A newer version of iTunesShut is available.Or, Learn More About iTunesShut
Full user review
"An great program that lets you go to sleep to iTunes."
It gives you a choice of: shut down, restart, pause iTunes, quit iTunes or run an Applescript. You can set minutes, number of songs or until end of playlist.
Its small, minimalist window gives the impression of fecklessness.
You won't be disappointed.