2 Replies Latest reply on Jul 15, 2013 1:18 AM by Wander5

    get alert if .indd files not found


      Hi Forum,


      I tried to get alert if found and if not.


      the alert is shown only if the .indd is found inside the folder. 


      when deleted .indd files and checked, the "not found" alert is not produced.


      var folder = new Folder("/Users/Wander5/Desktop/Wander5");

      var files = folder.getFiles('*.indd');


      for (var i=0; i<files.length; i++) {

      var file = files[i]; 

        if (file.exists) {

      alert("FOUND!") }

        else {

      alert ('not found')





      Please can anybody tweak on this.