1 person found this helpful
As you chart put this in the startup scripts folder
Then try this line on a document and save it, then open the same file and some other others, you will notice that this code only excuted on that document:
app.activeDocument.label = "alert (\"Yes\");";
You said that if I want to script to run of specific document, I need to put that line in the document.
Where \ How do I put that code line in the document?
And, The script that you first wrote, how do I run it? just save a JSX of it in the 'startup script' folder?
Why this error:
Acrobat EScript Built-in Functions Version 10.0
Acrobat SOAP 10.0
SyntaxError: illegal character
I hope, the "why" is clear to you.
If not: This script is written in ExtendScript for InDesign.
Are you able to help me getting the afterOpen event processing work - at this point I'd need an example that would e.g. show a dialog when the event is handled "Hello world, I'm being opened now!".