I'm trying to execute a menu item in acrobat 8 to "attach a file as a comment" using javascript behind a button.
I figured out the javascript that works is app.execMenuItem("Annots:Tool:FileAttachmentMenuItem") ;
When I test it with the debugger it works fine..however when I save it and test it in preview mode..it doesn't work. Any ideas? If it helps, I'm using a mac running OS X version 10.4.10
Thanks
The execution of a menu item from a PDF is restricted to a set of "safe" functions in Acrobat 8 for security reasons, which is why you cannot run the javascript. For more information on this visit Thom Parkers blog at:
[url=http://www.acrobatusers.com/blogs/thomp/?p=10]http://www.acrobatusers.com/blogs/thomp/?p=10[/url]
Thanks,
Lori
Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.