Skip to main content
BEGINNER_X
Legend
July 11, 2016
Question

Run Actions in Adobe Acrobat XI through Javascript or AppleScript

  • July 11, 2016
  • 1 reply
  • 2289 views

Hi Request,

My request is 95% of work in Indesign and 5% of work in Adobe Acrobat.

Indesign task is completed, but after that

1. user open the PDF

2. Run Action (user already created the action in all system)

3. Save PDF

Is it possible, Please help?

Thanks in Advance

Siraj

This topic has been closed for replies.

1 reply

BEGINNER_X
Legend
July 11, 2016

Hi,

Trying the below code, but not able to open the pdf.

var myPath = File("/Volumes/Automation/InDesig.pdf");

app.openDoc((myPath));

And also, I got the below code from forum,

  1. var myScript = AcrobatScript.toString() + '\r'
  2. myScript += 'AcrobatScript(\"' + myFilePath + '\");';  
  3. var bt = new BridgeTalk; 
  4. bt.target = "acrobat"
  5. bt.body = myScript; 
  6. bt.send(); 
  7.   
  8. function AcrobatScript(myFilePath) { 
  9.     var myAcrobatDoc = app.openDoc(myFilePath); 
  10.     var f = myAcrobatDoc.getField("Mail"); 
  11.     f.setAction("MouseUp", "this.mailDoc(true);"); 
  12.     myAcrobatDoc.saveAs(myFilePath); 
  13.     myAcrobatDoc.closeDoc(true); 
csm_phil
Legend
July 11, 2016

Hi Beginner_X,

try the below lines.

var myPath = File("/Volumes/Automation/InDesig.pdf");

myPath.execute();

thx,

csm_phil

BEGINNER_X
Legend
July 11, 2016

GREAT!!!!!

Thanks a lot CSM.....

After open the PDF, I need to Run Action in Acrobat.

Please refer the top thread screenshot for your better reference.

Any suggestions or help should be very appreciable...