Mobile app version of vmapp.org
Login or Join
Reiling762

: How to create a batch job, creating .psd files by image name (each line has a unique name in CSV file) with photoshop ? I am new to Photoshop. I have a Photoshop template with 3 text layers.

@Reiling762

Posted in: #AdobePhotoshop #Automation #BatchProcessing

I am new to Photoshop. I have a Photoshop template with 3 text layers.

How to create a batch job for:


creating .psd files by image name (each line has a unique name in CSV file) with Photoshop ?
Then I want to replace three text layers with my text in CSV
Finally I want to import jpeg images (that is in a folder) in each newly created .psd file. Each .psd file and image names in JPEG should matches.


Below is the example of my CSV file:

psdfile1, Image1, textlayer1, text layer2, text layerA
psdfile2, Image2, textlayer1, text layer2, text layerB
psdfile3, Image3, textlayer1, text layer2, text layerC
psdfile4, Image4, textlayer1, text layer2, text layerD
psdfile5, Image5, textlayer1, text layer2, text layerE


How can I create such a batch job, creating .psd files by image name (each line has a unique name in CSV file) usung Photoshop?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Reiling762

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi4787994

ExtendScript (ie JavaScript) is your friend. I can't write the code off the top of my head, but your process is pretty straight forward.


Load each line in the CSV file as a separate array of strings.
Open the template doc in Photoshop.
For each array (ie line in your CSV):

Replace the content of each text layer in succession with the appropriate array element.
Save a copy of the file under the name in that same array.

Loop through the remaining arrays and repeat step 3.
Close the doc without saving.


Done. Couldn't be easier. Well, you know, after you debug the code for a couple hours that is ;)

You didn't say what version you're using. Whatever it is, you'll find the official guides and reference dictionaries here.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme