Answered
I'm trying to get this simple script to work under Advanced->Document Processing -> Document Javascripts
Init
function Init()
{
app.alert('me');
}
After I save and open the file, I don't get my alert box. any ideas.
If you want code to execute when a document is first opened, you can place it in a document-level JavaScript but outside of a function definition, or invoke the function, which you can do a number of ways. In your example, you could do:
If you only need to run it once at startup, you can simply do:
Or in this case, this is equivalent:
app.alert("me");
George