0 Replies Latest reply on Oct 10, 2008 9:46 PM by hm_arul

    Export JPEG ID CS3

    hm_arul Level 1
      Hi scripters

      Here I am exporting all the images from the indesign document to jpgs.

      This script works fine with indesign cs2, but not in indesign cs3

      Please advice me where I have to change

      imgs = app.activeDocument.allGraphics

      for (i = 0; i < imgs.length; i++)

      {

      app.selection = imgs[i];

      img = imgs[i].itemLink

      imgname = img.name

      myp = app.activeDocument.filePath

      mydocna = app.activeDocument.name;

      var mydocname= mydocna.split('.indd')[0];

      var myFile = new File(myp + "/"+ imgname + "_" + mydocname +".jpg");

      app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.maximum;

      app.jpegExportPreferences.exportingSelection=true;

      app.selection[0].exportFile("JPEG", myFile, false);

      }

      alert("All Images Exported")

      app.activeDocument.close();

      Thanks in advance

      Regards
      a r u l