Equivalent of the Place() method in UXP
Hello everyone,
I recently tried to update my knowledge in indesign scripting by learning InDesign UXP plugins. It's a bit complicated but most of it work fine.
Unfortunately I am facing an issue without a solution despite my extensive research. I cannot find an equivalent to the 'Place()' function we had in regular scripting. It seems to no longer be available for UXP plugins.
I'm trying to import a "Referenced Text Adobe InDesign" file but I have no solution. Anyone has an idea or a more complete documentation?
I used to code it that way :
var file = new File(chemin + "/temp" + Math.random(999999999) + ".txt") // creating a temp file with my references
file.encoding = 'ASCII-MAC';
file.open('w');
file.write("<ASCII-MAC>\n");
file.write(myReferencedText); // a variable defined earlier
file.close();
myPara.place(file) // the paragraphe to replaceI managed to create the TXT file, but not importing it in my story (like a cmd+D on macos).
Cheers everyone,
Nicolas
