-
1. Re: JS to open specific Tools
try67 Nov 23, 2014 4:08 AM (in response to WCBaxter)Here you go:
app.execMenuItem("SplitDocument");
app.execMenuItem("ColorConversionMenuItem");
-
2. Re: JS to open specific Tools
GKaiseril Nov 23, 2014 9:28 AM (in response to WCBaxter)In irder to execute a menu item you wil need to supply the "internal" name and not the visile menu name. You need to use JavaScript to get the internal name. There is an example in the Acrobat JavaScirpt API Rerence that is freely available at Adobe.com.
-
3. Re: JS to open specific Tools
WCBaxter Nov 23, 2014 9:40 AM (in response to try67)Thanks for the reply. However, those are not valid menu items under app.listMenuItems();
-
4. Re: JS to open specific Tools
try67 Nov 23, 2014 9:43 AM (in response to WCBaxter)And yet, it works.
-
5. Re: JS to open specific Tools
GKaiseril Nov 23, 2014 9:51 AM (in response to WCBaxter)From what I have experienced menu item internal names are sometimes version dependet. They can change with each version.
-
6. Re: JS to open specific Tools
try67 Nov 23, 2014 9:53 AM (in response to GKaiseril)That's true. In addition, these ones are not usually documented at all, so there's no guarantee they will work with all versions.
-
7. Re: JS to open specific Tools
WCBaxter Nov 24, 2014 9:20 AM (in response to try67)Tested on Acrobat X and XI. Thank you very much. They work great, but…um, why? Shouldn't those come up under listMenuItems? How did you know they'd work, and how did you find the internal names?



