These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Skip file in batch

plasse
Registered: Dec 11 2006
Posts: 2

I would like to process a directory of pdf documents modified before a particular date using the Acrobat "Batch Processing" functionality. I read the article "JavaScript in Batch Processing" and tried using the event.rc line as described in the article but when it tried to process a document with an event return value of false, it killed the batch process before it had tried to process all the documents in the directory. Is there a way to skip the document, but keep processing the rest of the documents in the directory?

My Product Information:
Acrobat Pro 7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is the purpose of event.rc, to kill the process. It's pointed out in the article. You can only skip a file in a "run a JavaScript" batch command. Other batch commands don't apply. The JavaScript command works because you can use an "if" statment to either run or not run a script.

There is an experiment though that you might want to try. Use JavaScript to close the doc before any of the other commands are run.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script