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

Load PlugPlugExternalObject for a mac m1 processor, Indesign 2022

Participant ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

I have a plugin for InDesign 2022 that is not working on the M1 processor, mac os X Big Sur 11.6.4.

When I load the PlugPlugExternalObject this way I get an I/o Error

 

plugPlugFile = csInterface.getSystemPath(SystemPath.EXTENSION) + "/jsx/libraries/PlugPlugExternalObject-// // // Mac/osx10_64/PlugPlugExternalObject.framework";

plugPlugFile = escape(plugPlugFile);
csInterface.evalScript('loadPlugPlugLibrary("' + plugPlugFile + '")');

 

I have also ttries this way:

var externalLibrary1 = new ExternalObject("lib:PlugPlugExternalObject");
var externalLibrary2 = new ExternalObject("lib:\PlugPlugExternalObject");

 

but I get the error:

Uncaught ReferenceError: ExternalObject is not defined

 

What am I missing?

 

Regards

/ Pontus Hulin

TOPICS
Print , Scripting , SDK

Views

363

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

correct answers 1 Correct answer

Participant , Feb 21, 2022 Feb 21, 2022

I have solved the problem. Previously I tried to load the lib using a full path.

 

I swithed to

var externalLibrary = new ExternalObject("lib:PlugPlugExternalObject");

 

And now it works.

 

Votes

Translate

Translate
Community Expert ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

I don't really know much about this stuff.

What plugin is it?

Are you able to contact the creator of the Plugin?

 

 

Votes

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
Participant ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

Hello.

Im the creator of the plugin, but im not able to load the PlugPlugExternalObject that is needed for communcation between my html pålugin and the InDesign application. 

 

Regards

/ Pontus

Votes

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
Participant ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

I have solved the problem. Previously I tried to load the lib using a full path.

 

I swithed to

var externalLibrary = new ExternalObject("lib:PlugPlugExternalObject");

 

And now it works.

 

Votes

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
Community Expert ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

LATEST

@Pontus Hulin this code would work in Extendscript right? You said in the original post

I have also ttries this way:

var externalLibrary1 = new ExternalObject("lib:PlugPlugExternalObject");

this seems correct to me. How is the working thing different from this one?

-Manan

Votes

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