Unable to add filename to InDesign file
Posted: Sat Mar 02, 2019 5:42 pm
I have a flow which opens and InDesign file and imports XML with Javascript, which works fine. However, after the import I have code to add a text frame that inserts the filename, this does not work. I am using the same block of code that I used from two other flows that add the filename without a problem. The other two flows do not import XML.
Could my issue be that the XML import is interfering with text frame? Or that the two working InDesign files have no existing text frame and the XML import does? I am looking for other things to try. TIA. See code below
Could my issue be that the XML import is interfering with text frame? Or that the two working InDesign files have no existing text frame and the XML import does? I am looking for other things to try. TIA. See code below
Code: Select all
$doc.importXML( File($infile) );
$doc.pages[0].textFrames.add({geometricBounds:[706.5, 18, 728.5, 576], contents:$arg1});