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

Document Path Property in Batch Process

jmp
Registered: Mar 11 2011
Posts: 2
Answered

Hi,
I am running a batch process in which I want to capture the path of each PDF file and then place that information on the file.
 
I'm using a javascript batch process in Acrobat 9 Pro, Windows XP.
 
The process works fine, but when I'm running a batch process, the this.path information given is the path of the temp file that's created during the batch process, I don't get the path of the source file like I do when I analyze the this.path property of an open document.
 
Is there any way around this? I really want to be able to gather file paths using a batch process.
 

JMP

My Product Information:
Acrobat Pro 9.4.2, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Accepted Answer
If you process PDF files, this.path will return the correct path.
If you process other types of files you will only get the path of the temporary file that is created before the PDF. If that's the case you should create two processes: the first to convert all files to PDF, and the second to gather their paths.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

jmp
Registered: Mar 11 2011
Posts: 2
try67,
Thanks so much! I didn't even think to just convert to PDF FIRST and then try adding the path. Much appreciated.

JP

JMP