1 Reply Latest reply on Feb 20, 2014 3:18 AM by try67

    Resetting globals after batch process

    bipedBill

      Hi.

       

      I was wondering if anyone can help with a script I created recently. It's a basic batch ISO page counter and does this taking into account the crops in the pdf. What I was wondering is whether I can reset my global variables after the batch has processed on the folder. I'm just wondering if it is possible to determine when the script ends, hopefully it shouldn't be neccessary for me to post any code. My global variables go something like:

       

      globals.A0
      globals.A1 etc...

       

      If this isn't possible is there any other solution I can consider. What I've had to resort to with the script is closing acrobat completely after each run of the script, to reset my variables - not the most robust solution. Also I wonder if it is possible to determine if a page has been scanned black & white or in colour. I have looked at Acrobat documentation, but I haven't found what I'm looking for.

       

      Thanks for any help given.