10 Replies Latest reply on Aug 27, 2017 2:05 PM by try67

    How figure out when there are no more active docs

    sargums46564804 Level 1



      I want to use app.activeDocs to detect when there are no more active pdf's.  I tried putting:


      if (dd.length == 0)

      if (dd.length == null)

      if (dd.length == false)

      if (dd.length <1)

      if (dd.length !=1)


      into the following code:




      var dd = app.activeDocs

      if (dd.length ==0)


      app.alert ("hi")





      Note I cannot use folder level scripts as I am unable to get permission to put on user's computers.

      Using Acrobat X Pro