I'm trying to right a script that just handles these events and sends them out to another program I'm working on developing. This is surprisingly the first time I have ever worked with JavaScript but I'm picking it up ok.
I'm trying to use setAction to simply print a message to the console (for now) of when something is saved/opened etc. I have tried using something simple such as:
var myWillSave = console.println("WillSave");
this.setAction("WillSave", myWillSave);
as in the documentation, but I get an error:
this.setAction is not a function
3:Folder-Level:User:setAction.js
I am using Acrobat 9 and I have searched but can't seem to find what the problem is. I'm sure that I am missing something key but I don't know what it is. Any help is greatly appreciated.
Thanks