6 Replies Latest reply on Oct 3, 2010 1:54 AM by Harbs.

    InDesign crashing when running script on large files

    behrk2

      Hello,

       

      I have created a javascript that will:

       

      For each InDesign file inside of a specified directory {

      • Open the file
      • Find all textual elements with the specified character style
      • Convert that textual element to a hyperlink
      • Export the file to PDF (with a specified export preset)
      • Close the document

      }

       

      The script is working great. However, the script will cause InDesign to crash if it encounters a file with a larger file size.  The script works fine with InDesign files that are less than 50 - 60 MB.  When it hits a filesize that is any larger, InDesign will crash. I am running InDesign CS5.

       

      Does anyone have any recommendations?

       

      Thanks!