5 Replies Latest reply on Mar 14, 2016 9:11 PM by karthiks94217840

    Export rtf format

    karthiks94217840 Level 2

      Dear Friends,


      I need to export each and every stories to separate RTF file.

      my coding is below,

      var stories=app.activeDocument.stories.everyItem().getElements();
      for (var i=0; i<stories.length; i++){
         var nFile=new File(nfolder1+"/"+fName.substring(0,fName.length-4)+"rtf");
         stories[i].exportFile(ExportFormat.RTF, nFile);


      I have got some error, but i don't  now, how to clear this type of errors, please suggest friends, attached screenshot for your reference in below


      Screen Shot 2016-03-14 at 3.56.37 PM.png