Skip to main content
Bob_Sneidar
Participant
October 23, 2017
Question

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

  • October 23, 2017
  • 2 replies
  • 361 views

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 has been closed for replies.

2 replies

Legend
October 24, 2017

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

Legend
October 24, 2017

so the answer is in your question: do Script.

Bob_Sneidar
Participant
October 23, 2017

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?