Load PlugPlugExternalObject for a mac m1 processor, Indesign 2022

Explorer ,
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

100

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

correct answers 1 Correct answer

Explorer , Feb 21, 2022 Feb 21, 2022
I have solved the problem. Previously I tried to load the lib using a full path. I swithed tovar externalLibrary = new ExternalObject("lib:PlugPlugExternalObject"); And now it works.

Likes

Translate

Translate
Adobe Community Professional ,
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?

 

 

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
Explorer ,
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

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
Explorer ,
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.

 

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
Adobe Community Professional ,
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

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