Hi Jang,
Thank you for your reponse! I appreciate your help!
I also kept running tests yesterday, while modifying the script in order to spot the cause of the crash. The original script crashes even when being run on a single file that does not contain automatic text. It stops somewhere in the middle of the file and FM crashes. I am talking about FM 10 files full of tables, variables, conditions, figures, etc. - not just text paragraphs. An additional problem that I haven't managed to address yet is that the table cells are being ignored. I tried adding | Constants.FTI_TblAnchor to the if statement, but it did not make any change. The more I work on this, the more interesting it becomes.