2 Replies Latest reply: Sep 13, 2009 3:11 PM by mazmax RSS

    PSD folder to file

    mazmax Community Member

      Hi, I was wondering if something like this could be achievable with a PS script.

       

      Filename: example.psd

       

      Folders inside the PSD called "English", "French", "it" with same text layer but in different language

       

      Output: ../English/example.jpg
      Output: ../French/example.jpg
      Output: ../it/example.jpg

       

      Using Save for Web an Devices JPG 80%?

       

      Many thanks

        • 1. Re: PSD folder to file
          c.pfaffenbichler Community Member

          Very recently exporting Groups has been discussed in this forum:

          http://forums.adobe.com/thread/488255?tstart=0

           

          As regards the ExportOptionsSaveForWeb You can consult »Photoshop CS4 JavaScript Ref.pdf« or quite probably a forum-search will turn up an exapmple.

          • 2. Re: PSD folder to file
            mazmax Community Member

            Try changing to this

             

            var jpgopts = new ExportOptionsSaveForWeb();

            jpgopts.format = SaveDocumentType.JPEG;

            jpgopts.optimized = true;

            jpgopts.includeProfile = true;

            jpgopts.quality = 80;

             

             

            theCopy.layers[1].visible = false;

            theCopy.exportDocument((new File(theDestination+"/"+myDocName+aSuffix+aLayerName+theNumberString+".jpg")),ExportType. SAVEFORWEB,jpgopts);

            };

            theCopy.close(SaveOptions.DONOTSAVECHANGES);

            }

             

             

            But no idea why it's not working?