/bundles/itninjaweb/img/Breadcrumb_cap_w.png
I've used the following javascript file called ListItems.js which contains the following code:


//ListItems.js
//Open Javascript Console
console.show();

//List Toolbar Buttons in the Console
var toolbarItems = app.listToolbarButtons()
for( var i in toolbarItems)
console.println(toolbarItems + "\n")

//List Menu Items in the Console
var menuItems = app.listMenuItems()
for( var i in menuItems)
console.println(menuItems + "\n")

Once this is placed in the adobe reader x javascript folder and I open reader I get the pop-up java console window showing me the names of the menu items however it does not list the toolbar items (I know this as if I comment out the part below "List Menu Items in the Console" shown above I get nothing shown in the java console when reader is closed and then reopened).

My guess is that in reader 10 the following code needs to be changed but I don't know what it should be..

//List Toolbar Buttons in the Console
var toolbarItems = app.listToolbarButtons()
for( var i in toolbarItems)
console.println(toolbarItems + "\n")

Does it look off to any of you? Any recommendations so I can get a list of the toolbar items for Adobe Reader X?

Thanks for your time.
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Well I didn't have much luck figuring out how to view the tool bar javascript button codes. However my goal was to modify the menu bar items post install easily and that I have accomplished.

The menu bar items are located here in the registry:
[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\10.0\AVGeneral\cCommonToolsDesktop]

After the custom adobe reader X install I import the registry file I made that contain the menu bar settings I want.
Goal accomplished.
Answered 02/23/2011 by: rodwyer
Yellow Belt

Please log in to comment
0
Does it look off to any of youWhat I know about JS could be summarised on the back of a postage stamp but I do know that each line must end with a semi-colon and that each construct needs to be surrounded by braces i.e. { and }
Answered 02/23/2011 by: VBScab
Red Belt

Please log in to comment