Sometimes you need to realize repetitive (and boring) tasks. A natural approach may be scripts languages such as Perl or Python but it is not always the only one.
Today, I had to retrieve my skills in expect, a tool for automating interactive applications. It worked like a charm when I had to split an intensive task to get an acceptable performance.
In my opinion expect has some important limitations but it is a satisfaction when you see this tool emulating your behaviour in common applications.