Question
Simple script to open an active Illustrator document in Acrobat
Hello, I'm using Illustrator 26.3.1 and Acrobat 2022.001.20112 both for MacOS at work.
I've put together the extendscript below. What is the correct target name for Acrobat?
When I run it, I receive the message: "Error. Target could not be launched"
Any ideas or a script that works to open the active Illustrator document into Acrobat?
#target illustrator
var masterfile = app.activeDocument.fullName;
var bt = new BridgeTalk();
bt.target = "acrobat";
bt.body = "app.open(new File('" + masterfile + "'));";
bt.onResult = function (inBT) {
result = eval(inBT.body);
};
bt.onError = function (inBT) {
alert(inBT.body);
};
bt.send(8);
