How figure out when there are no more active docs
HI,
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:
{
app.beginPriv();
var dd = app.activeDocs
if (dd.length ==0)
{
app.alert ("hi")
}
app.endPriv();
});
Note I cannot use folder level scripts as I am unable to get permission to put on user's computers.
Using Acrobat X Pro
