5 Replies Latest reply on Feb 11, 2013 12:22 AM by Beliakov

    Why i can't export into IDML [JS-CS6]?

    Beliakov Level 1

      I have:

      var mDoc = app.activeDocument;

      if(app.activeDocument.modified){

          app.activeDocument.save();

          }

      myFilename = app.activeDocument.fullName.toString();

      mPathDoc = app.activeDocument.fullName;

      if (myFilename.match(".indd") !=null){

      myFilename = myFilename.split(".")[0]+"_test.idml";

      }

       

      app.activeDocument.save(File(myFilename)); --- this line does work!

      mDoc.exportFile(ExportFormat.INDESIGN_MARKUP, myFilename); this line DOES NOT WORK!

      // script says: "Cannot find the folder" - though the same folder in previous line