You can run this AppleScript from anywhere, just launch it Ð its called Street Spirit Fade Out. It ought to run under any OS that runs iTunes, but I've mostly tested it under OS X 10.1. To put it to use, you can simply double click it... If you want to make it more useful, put more...
Mac OS X 10.2 supports the Applescript shutdown command, and now SSFO does too. So rock yourself to sleep and save power too.
RequirementsiTunes 2 and 3
*Previously available here