I am done for the evening. The script is basically functional but I don't have time to document it at the moment. There are also a few non-critical changes I wish to make (and of course incorporate any feedback you might have).
If you wish to try it out in its current state, the script is available at:
http://chiselapp.com/user/saulgoode/rep ... 888a498ce1The template file I used is available for download at the following website (click on the "Original file" link to get the XCF).
http://barn.kerosenecow.net/u/saul/m/ho ... plate-xcf/There is some documentation in the comments and given your experience with the brochures script, hopefully you will be able to figure things out.