Simple script to open an active Illustrator document in Acrobat

New Here ,
Aug 26, 2022 Aug 26, 2022

Copy link to clipboard

Copied

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);
TOPICS
Import and export

Views

58

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation