(after iterating quite a bit about the format, I think this is a good approach at automating a sequence of files, to be continued...)