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

Batch Rename

cloetila
Registered: May 15 2007
Posts: 8

I would like to copy a group of files (e.g., XYZ_R1G) with a batch process and rename them, but I would also like to replace the last letter from the original file names (G) with new letter (e.g., XYZ_R1E). Is there a way to do this with a batch process? So far I have only been able to find a way to add the letter to the original when I copy files with my batch process.

My Product Information:
Acrobat Pro 6.0.5, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
For this level of control you'll need to use JavaScript to do the rename and saving. So, add a "Run a JavaScript" command to your sequence. Then select "Don't Save" as the output option.

Use a regular expression in the script to create a new name and save with the "Doc.saveAs()" function.

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