Skip to main content
Bob_Sneidar
Participant
Oct 23, 2017 10:27 PM UTC
Question

Using ScriptEditor to execute Javascript, but this doesn't work:

Acrobat = Application('Adobe Acrobat');

Acrobat.activate();

delay(1);

this.getField("technotes").value = "This is only a test.";

Acrobat activates, but balks at this.Getfield, with error this.Getfield is undefined! Wha??? But if I tell applescript to do as javascript then this.getField works fine!

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Legend
Oct 24, 2017 6:08 AM UTC

Youre trying to run Acrobat JavaScript from an external script editor but it has no idea how to do that.

Translate
Legend
Oct 24, 2017 6:30 AM UTC

so the answer is in your question: do Script.

Translate
Bob_Sneidar
Participant
Oct 23, 2017 10:30 PM UTC

I suppose the question should be phrased, how do I tell Acrobat to fill in a value in a field using javascript and the script editor on OS X?

Translate