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
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.
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?
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
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.
Copy link to clipboard
Copied
@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