Skip to main content
Participant
May 12, 2021
Beantwortet

How to make a script for saving out multiple files with layer comps to JPEGs

  • May 12, 2021
  • 5 Antworten
  • 2622 Ansichten

Hello!

I am looking to see if anyone has had any luck creating a script for the automated saving of multiple Photoshop files with Layer Comps to JPEGs. 

I work on multi-frame banner files in Photoshop, and my client likes to see JPEGs of each frame for approval instead of a PDF. The time it takes to File-Export-Layer Comps to Files for 70+ Photoshop files is a little much. A script would be so much more efficient.

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von Stephen Marsh

 

EDIT: I'd suggest that you look into editing the script provided in this topic:

 

Droplet using a .jsx action not working properly - every file has the same name!

 

I made the edits, recorded an action to use browse to the new modified script, then ran the action through automate/batch.

 

A perfect result, no button pressing and all comps from all files saved as expected with unique filenames!

 

5 Antworten

Participant
May 14, 2021

Thanks everyone! The script worked. I am very very happy.

Stephen Marsh
Community Expert
Community Expert
May 14, 2021

 

EDIT: I'd suggest that you look into editing the script provided in this topic:

 

Droplet using a .jsx action not working properly - every file has the same name!

 

I made the edits, recorded an action to use browse to the new modified script, then ran the action through automate/batch.

 

A perfect result, no button pressing and all comps from all files saved as expected with unique filenames!

 

Mike_Gondek10189183
Community Expert
Community Expert
May 13, 2021

I successfully did using batch on 2 files. And an action with insert menu item. You may have to hit enter 70x.

 

 

Stephen Marsh
Community Expert
Community Expert
May 13, 2021

@Mike_Gondek10189183 

 

That is similar to what I tested. I had to hit the OK button once per run of the modified script (twice if you count the alert finish message, which should be easy enough to disable in the comps script).

 

If the script can be called from within another script, that would be more workable.

 

Does anybody know if it is possible to call the Layer Comps to Files script from another script, bypassing the GUI? It can be done for the Load Layers into Stack, I'm just not sure on how to change the syntax...

Stephen Marsh
Community Expert
Community Expert
May 13, 2021

 

I modifed the original script to use the active filename for each export, this is useful as part of an overall script or action to help semi-automate or automate saving multiple files from multiple comps with unique names which don't overwrite each other:

 

Export Layer Comps incorrectly referencing previous files for naming.

 

It is not THE answer, it is part of AN answer! :]

 

JJMack
Community Expert
Community Expert
May 12, 2021

I guess if you find someone that has you would also want them to give their script to you.  More likely then not that script would not work with your Photoshop document because you documents design  will  not be like they designed their documents.  The Script will only be able to process document that have the designed elements the scripts is coded to process.  You will need to program the script you want for your multi-frame banner files design. All your multi-frame banner files need to have same design elements or structure. As fas as I know there no standard for a multi-frame banner file format.

JJMack