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

Ive got about 15 folders (groups) in a .psd file each folder has multiple layers, together each folder makes one retouched and editted image, im aware of the export layers to files script, but is there a way to export each folder as a file ?

share|improve this question

A quick and dirty way is to run this script on the document:

for (var i = app.activeDocument.layerSets.length - 1; i >= 0; i--) {

...and then use the export_layers_to_files.jsx script you already talked about.

This will take the top most Layer Groups, and merge them into a Layer named whatever the group was named. The second script will take those layers and export files however you want.

NOTE: This will only merge TOP LEVEL GROUPS. Groups within groups will not be treated separately.

The two scripts could be combined, but it depends on how often you need to run it.

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.