Hello:
I'm debugging some code attached to menu items. Is there a way to re-run modified *.js code without having to exit/reload Acrobat for each test iteration?
It's my understanding that the only way to load scripts into Acrobat is when it loads the scripts from the default location
C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts
As a result, each change I make to the addmenuitem exec code requires that I unload Acrobat and reload it to get it to pick up the modified code.
Is there another way to speed up this debugging cycle?
Thank you in advance.
-- Roy Zider
What I do when I am working on an Acrobat script that I am going to attach to a menu item is run the body of the script (without the part that attaches it to a menu item or a button) in Acrobat's debugger. Just go into acrobat and hit apple + J on a Mac (and probably something similar on a PC) and copy and paste your script into the main area of the debugger, select the whole script and hit the enter key (the one by the num pad not the regular enter key) and your script will run, if you get any errors they will be output below your code in the same window. Also if you want to log some part of your scrpt you can use "console.println(<<your stuff>>);
HTH
Leo
North America
Europe, Middle East and Africa
Asia Pacific