3 Replies Latest reply on Dec 17, 2013 8:09 AM by Laubender

    InDesign Script to wait for file to open before continue


      Hello as above i have a simple script to select a file to open froma folder and tthen open it.

      However the code continues as the file is still opening

      is there a way to get the script to wait for the selected file to finish opening before continuing?

      var file1 = File.openDialog();


      //rest of the code with the file open