• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit Search
0

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

65

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