Sometimes it is useful to place a special playlist item, which causes amaroK to execute an internal command (e.g. stop playing) when reaches that entry. Sometimes it is useful to execute some external commands (e.g. shutdown) when playing reached a certain place (e.g. end of album).
Command Executor plugin wakes up when amaroK starts playing an .ogg file from a pre-defined directory (the "Command directory"), and executes the file with the same name ( without the .ogg suffix) in an another pre-defined directory (the "Script directory"). There are three .ogg files and scripts attached for stop playing, shutdown and hibernate the computer.
Note that configuring needs kdialog (available in a standard KDE).