/build/static/layout/Breadcrumb_cap_w.png

I need to list the toolbaritems in Adobe reader X

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   [ + ] Show comments

Answers (2)

Posted by: rodwyer 13 years ago
Senior Yellow Belt
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.
Posted by: anonymous_9363 13 years ago
Red Belt
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 }
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ