4 Replies Latest reply: Jan 30, 2014 8:47 AM by W_J_T RSS

    Export specific artboard as JPEG?

    ThomasBB83 Community Member

      Hello!

       

      See title - is this possible?

       

      I've made this small script to test a few things, before moving on to the bigger stuff (some of it have been cut out, since it's not important):

       

       

              var exportOptions = new ExportOptionsJPEG();
              var type = ExportType.JPEG;
              var fileSpec = new File(dest);
              exportOptions.antiAliasing = false;
              exportOptions.qualitySetting = 70;
              exportOptions.artboardRange = "3";
              app.activeDocument.exportFile( fileSpec, type, exportOptions );
      
      

       

      I'm trying to export artboard #3 as a JPEG. But it doesn't work.


      According to the scripting reference guide, most of the "ExportOptions"-functions support the artboardRange-parameter, but alas - JPEG does not.

       

      Is there another way to do this? Right now I'm only getting all the artboards into a single JPEG-file, which is not what I'm searching for :-)

       

      BR,

      Thomas