|
I am having a real bear of a time with this problem. I am writing
a _javascript_ function to add a menu item that will
prompt the user for a series of drawing numbers. (This is only going to be used
within our company) After the user inputs the drawing # acrobat is suppose to insert that
#. I am doing this so we can automate the process of putting print packages
together for our customers. I have played around with the whole _javascript_ thing and got it to work as a batch process. However,
I learned how to create a menu item and I feel it would be better served as a
menu item. It seems as though writing code for a batch process is different
than writing code for a menu item. Am I right in make this assumption? If so
are there any tips that you have for me. I am including a sample of the code I
am messing with, it is just some code that I am using to test and it continues
to give me the same results. The code is below: //Test Code// function R354007(){ this.insertPages(this.numPages-1,
"/Rocklin_01/Techservices$/Unreleased Shopfiles/3500/354007.pdf"); } function
Diaphragm(){ var Diaphragm = app.response("Diaphragm Assembly:",
"DIAPHRAGM"); switch (Diaphragm ){ case “35-40-07” : R354007(); break; } } function Test(){ Diaphragm(); } //*********** CODE **********// app.addSubMenu({cName: "Energy",
cParent: "Tools"}); //Print Package Menu app.addSubMenu({cName: "PrintPackage", cUser:
"Print Package", cParent:
"Energy", nPos: 0}); app.addMenuItem({cName: "QuadGuard", cParent: "PrintPackage", cExec:
"Test()", nPos: 0}); Thanks for the HELP I really appreciate it. Donny |
