Duplicate a file a specified number of times and append student names to created files

I need a shortcut for my wife to run who is a lecturer. She endlessly has to duplicate files for her students (classes of 6-12) and then manually append the names of her students to each file. She has to do the for four classes maybe 20 times a year for each class. I need to help to create a shortcut for each class that she could sharesheet the file to and it would produce 10 copies with the student names appended. Thanks

Hi there! You can give a method like this one a try.

I added comments to try and help explain what each step is doing


Thanks - work great. Super appreciated