Script Description
In Adobe Photoshop you can make a duplicate of any open image file by right-clicking the title bar and then clicking “duplicate”. This is good if you just need one duplicate, but what if you need more? Instead of repeating this step over and over you could run a script to make as many duplicates as you like. This tutorial describes a script to make multiple duplications within Photoshop.
Looking at the script
This is a simple task that calls for a simple script. It first prompts the user to enter the amount of duplications desired. It then sets that to a variable, and uses a for loop to create the duplications. Pretty simple stuff.
I use the “prompt” function to create the prompt and set the result to the "myAmount" variable. Within the for loop I’m using the “duplicate” function.
// Photoshop script to do multiple duplications
var myAmount = prompt("How many duplications?");
for ( var i = myAmount; i > 0; i-- )
{
app.activeDocument.duplicate();
}
Installing the script
Installing this script, or any Photoshop script is really easy. Just place the .js or .jsx file into the scripts folder within your Photoshop application folder. Such as, C:\Program Files\Adobe\Adobe Photoshop CS3\Presets\Scripts. You may need to restart the appliacation to see the script.

