3 Replies Latest reply on Feb 10, 2012 3:07 PM by KuddRoww

    myFile.documentPreferences.facingPages=ARGH

    KuddRoww Level 1

      If I run the line:

      app.activeDocument.documentPreferences.facingPages=false

      I get exactly the results I want.

       

      If I to run this:

       

      var myFolder = Folder.selectDialog();

      var files = myFolder.getFiles ();

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

               myFile = app.open(files[i], true)

              myFile.documentPreferences.facingPages=false

      myFile.close(SaveOptions.YES);

      }

       

      InDesign crashes!

       

      What am I doing wrong? I feel like this should work no problem. I feel like I already had to working! Haha anyways I hope there is a simple explanation for a simpleton like me.

       

      Thanks,

       

      Kurtis