I had some time on my hands, so I wrote it myself. Took me a while, since I didn't actually know Pascal and the Tes5Edit functions are badly documented, but have a look. https://github.com/DieKatzchen/BarrelFiller It doesn't add masters yet. I may add it later, but for now I just do it manually before I run the script.