TextFrame ExportFile to Snippet fails if source selection is inner text (ex: an insertionPoint)
Select an insertionPoint, call parent textFrame through
app.selection[0].parentStory.textContainers[0]
Then
call exportFile (snippet) on that object and export fails.
It seems the scripting engine has kept the initial insertionPoint as reference when exportFile is called leading to an execution error (this export format cannot be applied to this object).
It should work.
Bug encountered with several versions/os.
7
votes
Loic
shared this idea
Thanks for reporting
We are reviewing the issue
-InDesign Team
-
Uwe Laubender commented
Hi Loic,
the workaround should be:
Get the id of that textContainer.
And then do:document.pageItem.itemByID( IDofTextContainer ).exportFile()
Regards,
Uwe Laubender
( ACP )