I'm just not getting this trustedFunction method. I have read the documentation in the Acrobat JavaScript reference and found an article by Thom Parker on using trusted functions. I'm not sure just what I should put in the body of the function.
I have two parts of a script. One creates templates from pages in the document and I know that this can only be done through batch, console or menu events. The second part of the script resets the Crop, Trim, and Bleed page boxes which I can do using a toolbar button. I have tried to put this whole script in the body of the trustedFunction but with no success.
Is there anything else I can read to explain how this method works?
I have this script working in a batch sequence and it works great. However I was hopeing to get it to work with a single button click instead of more mouse movement to get the to the batch sequence.
StevenD