Skip to main content
Participant
April 27, 2014
Question

Scripting for yearbook pages. As a complete newbie, how should I go about this?

  • April 27, 2014
  • 2 replies
  • 398 views

Hi guys,

Let me start by saying I have no prior experience at all with Photoshop scripting (I didn't even know what it was used for, until today), but I really want to use it for a specific task I am doing, so your help would be much appreciated!

I am currently in charge making class pages for my school yearbook. There will be one page for every class. I have been given two class photos for each class, the names of the students in the photos, as well as a quote from the teacher of each class. I have made a template, and added all of these elements into different areas of the page. However, as my school is very big and has many, many classes, going and pasting all of these different things for each page would be extremely tedious. I was told that scripting might make the process easier, though.

So, right now I am trying to make a script that would allow me to paste the correct images into the document, get the correct lines of text for each page, and resize them/place them in the correct places. This would then be repeated for each of the pages (about 70 total).

I have no idea how to go about this, though. I have searched around for tutorials, but I couldn't find anything relevant to what I am trying to do, so I am asking for help here. Could anyone point me in the right direction for this, please? Thanks in advance!

This topic has been closed for replies.

2 replies

JJMack
Community Expert
Community Expert
April 27, 2014

If you make a template PSD file with text and image layers.  You should be able to define Photoshop variables for these layers.  What you would the need a CSV file that has a column for each variable name and rows that identify the image files for the image layers in the template and the text for the text layers in the template.  Do a search on  Photoshop data driven graphics tutorial.

https://www.google.com/search?num=100&lr=&newwindow=1&safe=images&as_qdr=all&site=webhp&source=hp&q=photoshop+data+driven+graphics+tutorial&oq=Photoshop+data+driven+graphics&gs_l=hp.1.1.0j0i22i30l3.1130.1130.0.8291.2.2.0.0.0.0.130.230.0j2.2.0....0...1c.1.42.hp..1.1.98.0.xqgOdbgMgK4

JJMack
c.pfaffenbichler
Community Expert
Community Expert
April 27, 2014

I doubt a custom Script should prove necessary, please check out the chapter »Creating data-driven graphics« in the Help.

And don’t forget that to get vector/type output for printing you will have to save pdfs (or eps with »Include Vector Data« checked).