Skip to main content
Participating Frequently
March 18, 2015
Question

BridgeTalk or executeScript from Photoshop to Acrobat not working?

  • March 18, 2015
  • 1 reply
  • 483 views

Am I right in saying that Photoshop can't talk to Acrobat? I've tried both via executeScript and BridgeTalk and I can talk to InDesign and Illustrator but not Acrobat (my use case here is joining up PDFs and makePDFPresentation is not working for me there - see my last thread for details).

// try executeScript (works fine for illustrator and indesign but not acrobat)

acrobat.executeScript('alert("hi");'); // don't seem to be able to exectuteScript for acrobat

// try BridgeTalk (works fine for illustrator and indesign but not acrobat)

var myscript = '';

myscript += 'alert("from bt");';

myscript += 'var doc = app.newDoc();';

myscript += 'doc.insertPages({nPage: -1, cPath: "/c/path/to/input.pdf"});';

myscript += 'doc.saveAs("/c/path/to/output.pdf");';

myscript += 'doc.closeDoc(true);';

var bt = new BridgeTalk;

bt.target = 'acrobat';

bt.body = myscript;

bt.send(); // Acrobat doesn't open and nothing seems to happen

Finding docs on whether acrobat is a valid target seems impossible. And if not, why not, and any suggestions for what to try instead?

This topic has been closed for replies.

1 reply

beckylushAuthor
Participating Frequently
March 18, 2015

BridgeTalk.getTargets() only gives me "ame,bridge,illustrator,indesign,photoshop,premierpro,switchboard". I'm on CC 2014 on Windows 7. Is Acrobat not/no-longer a valid target?!

Inspiring
March 18, 2015

I wonder if you have tried a stand alone jsx with target acrobat and running it with File.execute(); ?

beckylushAuthor
Participating Frequently
March 19, 2015

I haven't, but that won't really help me as I need it to be a one-click script from within Photoshop. Am going the InDesign route instead now.