6 Replies Latest reply: Oct 13, 2011 10:15 AM by pkrk RSS

    Digital Dusting

    pkrk Community Member

      I find that some of my scripts work well when used once in a while.

      But when using the script back to back a handful of times, I find indd/the script crashes more frequently.

       

      Should I be destroying my variables at the end of every script?

       

      Does anyone make this a common practice?

       

      Any specific functions you find effective?

       

       

       

      Could there be a totally unrelated reason this is happening?

       

       

       

      Thanks for your input!!

        • 1. Re: Digital Dusting
          pkrk Community Member

          From the scripting guide.... "By default, when you run an InDesign JavaScript, the script is interpreted and executed by the “main”

          ExtendScript engine, which is destroyed when the script completes execution. Script objects created by

          the script do not persist."

           

           

          Sounds like it's just my station's capabilities?

          • 2. Re: Digital Dusting
            John Hawkinson Community Member

            I find that some of my scripts work well when used once in a while.

            But when using the script back to back a handful of times, I find indd/the script crashes more frequently.

            Version? Can you define "crash"? Do you get a crash report?

            • 3. Re: Digital Dusting
              pkrk Community Member

              cs 5

               

              I just get the spinner... I eventually forc quit it.. which eventually brings on the crash report.

              • 4. Re: Digital Dusting
                John Hawkinson Community Member

                Could you upload a copy of the crash report to http://pastebin.com/ and post a link to it? I'd like to see it.

                Though:

                I just get the spinner...

                Generally this is termed a "hang," not a "crash." A crash is when the program terminates itself (or is terminated by the OS).

                 

                 

                I eventually forc quit it.. which eventually brings on the crash report.

                This is abnormal behavior. Normally force qutting does not lead to a crash report. I wonder what is different in your case. That is somewhat interesting.

                • 5. Re: Digital Dusting
                  pkrk Community Member

                  When I restart indesign I get rid of the files it tries to recover , I  run the script again and it works fine.

                   

                  Odd.

                  • 6. Re: Digital Dusting
                    pkrk Community Member

                    Sometimes it doesn't hang and does crash on it's own.