Last frame in a story: textFrameItem.nextFrame is not null
the value of nextFrame of the last textFrameItem in a story should always be null. Otherwise you could thread the outport of a text frame item with the inport of the same text frame item.
And indeed that's the case!
See details in this thread at the Adobe Illustrator Scripting Forum:
- Re: [BUG] copying threaded text-frames. Laubender Mar 30, 2019 7:42 PM (in response to Laubender) https://forums.adobe.com/message/11004207#11004207
Since this IS POSSIBLE it creates a rather strange text composition in the affected story. So my suggestion: nextFrame of the last threaded text frame item in a story should always be null.
Here an example where I used one single text frame item that is threaded with itself:
- Re: [BUG] copying threaded text-frames. Laubender Mar 30, 2019 7:58 PM (in response to Laubender) https://forums.adobe.com/message/11004345#11004345
( ACP )
( To unzip the attached zip file rename it to *.zip first. )
Uwe Laubender commented
Tested with Adobe Illustrator CC 2019 on Windows 10.
( ACP )