TextFrame ExportFile to Snippet fails if source selection is inner text (ex: an insertionPoint)
Select an insertionPoint, call parent textFrame through
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.
Loic shared this idea
Under Review · amaarora responded
Thanks for reporting
We are reviewing the issue
Uwe Laubender commented
the workaround should be:
Get the id of that textContainer.
And then do:
document.pageItem.itemByID( IDofTextContainer ).exportFile()
( ACP )