A comment buried in the official example
Note The changes are not visible until the document (after the script has completed) is closed and reopened. Also note that the AppendRichTextItem method appends only the first 32K of a RichTextItem; the remainder is truncated.
Thanks to Jake’s code store error list – I didn’t even know the list existed.
I have fed this back to IBM.