I'll try it when I get home.
Making a script to play 30 second clips of a playlist is easy, but only when you already have the files, which is what I think everybody above was actually thinking that you were talking about (since that's what the linked AppleScript above does on iTfM). I don't know any easy way to mess with that behavior of iTunes though, since the tracks are streams and not really on the drive. It's just a link to a stream.