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

Create a Toolbar Button for "Document Processing>Batch Processing"

lawvol
Registered: Dec 3 2009
Posts: 8

I have looked around and have found several posts that talk about adding toolbar buttons, but none that speak to what I'm trying to do.

I use the batch processing feature in Acrobat 9 Pro all the time, and would just like to add a button to the toolbars which will automatically open the batch processing dialog box, so I don't have to constantly navigate the menus.

I'm fluent in Acrobat, but unfortunately a newbie to Javascript. Any help that anyone could offer would be greatly appreciated.

Oh, and for what it is worth, I'd be glad to provide an image / icon for the button if that is needed.

Thanks in advance for any help.

============
Lawvol

My Product Information:
Acrobat Pro 9.3.1, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
First, you need to create a script to execute a menu item from the JavaScirpt console. You will need to find the menu item name to be executed. [url=http://www.acrobatusers.com/tutorials/2008/06/executing_menu_items_from_javascript]by Thom Parker. Executing Acrobat Menu Items from JavaScript[/url]. When you check the Acrobat JS API Reference you will find that execution of menu items with version 8 or above has been restricted to trusted functions. So you will need to write a folder level function to provide the ability to execute a generalized menu item or the specific batch processor. Once you get all of this sorted out, then you can write the application folder level script to add the tool bar button, or more precisely add the script for the tool bar button after the code for the script to execute the menu item. [url=http://www.acrobatusers.com/tutorials/2006/auto_insert_metadata]Automating PDF Document Metadata Insertion with Acrobat JavaScript[/url] by Thom Parker.

George Kaiser

try67
Expert
Registered: Oct 30 2008
Posts: 2399
On top of Thom's advice, I could save you some time by giving you the exact command you will need to execute in order to open the batch dialog box. It's:
app.execMenuItem("BatchEdit");

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

lawvol
Registered: Dec 3 2009
Posts: 8
Thanks, I'll try and give it a go and see what I can come up with. I really do appreciate your thoughts and input and you all taking the time to respond to my question.

I'll let you know what I am able to accomplish.

============
Lawvol