Last night I was, obviously, lying in my bed.
Listening to stuff with XMMS.
And then I noticed I had put to the gigantic playlist of mine a piece of instrumental music that I had not heard before.
So, I just had an idea.
I jumped up, wrote a small Perl script that takes the song title from the XMMS-Infopipe and feeds it to Festival.
Then I bound the script to a button on my remote control I use to control XMMS.
So now I don't need to get up to see what the hell is the name of the song that is playing! =) Strange ideas in the middle of the night.
A friend told me someone had written something similar for iTunes in Applescript. Well...
Uh, it's nice to see that when I write Perl at four o'clock in the morning, I still include "use warnings; use strict;" - those are the sort of things everyone should have in their reflexes =)