1 Reply Latest reply on Apr 28, 2014 10:55 PM by Jump_Over

    validate nextTextFrame availability

    Arivusudar Level 1

      InDesign V5.5, Javascript. Do we have any method to validate textframe has a thread or not? i want to remove all following threads..I tried with nextTextFrame, but if textframe doesnot have next thread, it shows error, instead of that, can we have any other method to validate, it has a following thread or not. Thanks in advance.

        • 1. Re: validate nextTextFrame availability
          Jump_Over Level 5



          Checking nextTextFrame is correct however returning error or not depends on syntax.

          Last textFrame in a thread has this property == null, so:


          this will return an error (true, true,..., true, no object):



          and this will not (true, true,... true, false):