Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is the problem. I am doing this work for a company. They wanted me to clean 138 jpeg files and give them back.

I opened a psd and put all the files in it. I cleaned all of them. At last, i created 2 effects. 1 Brightness/contrast and 1 curves. They are at the top of the layers.

Then i tried "File>Scripts>Export Layers to Files" command. Here comes the problem. This command closes all the layers first, just let one open, save it, and then goes for another one.

But in this time, my Brightness/contrast and Curves layers are also closing. So i cannot see these effects on layers.

Anyone has a suggestion about this?

share|improve this question
Do you know how to script using javascript, applescript, or vbscript? – horatio Mar 14 '13 at 14:33

So it's just two adjustment layers you need to add? I'd create an action to add them, then use a batch (File → Automate → Batch) to process all the original files. You can include a Save For Web command in the Action to save them to a known location, as well.

Should be a fairly quick job to set up, and it also shouldn't take long to stomp through 138 or even 1380 files.

Here's a video on batch processing from Adobe:

share|improve this answer

If you export every layer separately the composition is lost since the brightness/contrast is its own layer. You could use layer comps and then script export the compositions. Or, make a smart object from the settings layer and the image layer, then script export every layer.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.