Script to load more than 1 of the same image - sharing script for future improvement
My latest invention - maybe already exists out there
But this script allows you to load the placeholder with the same image x amount of times
I often have to place the same graphic into empty image frame placeholders, and loading the placeholder with the same image is not time consuming - but trying to learn scripting, and why do something manually when you have a computer :)
As always - sharing for future improvements/enhancements - or if someone is in same situation.
// Multi-Place Graphic Script
(function() {
var myFile = File.openDialog("Select the graphic you want to place multiple times");
if (myFile != null) {
var count = prompt("How many times do you want to place this image?", "4");
if (count !== null && !isNaN(count)) {
var loadArray = [];
for (var i = 0; i < parseInt(count); i++) {
loadArray.push(myFile);
}
// This loads the Place Gun with the array of the same file
app.activeDocument.place(loadArray);
}
}
})();

