After a RTF has been processed by EndNote it is opened in FM and the paragraphs are handled.
It turns out that I do not need to set special Open parameters to specify the filter RTF (which is requested when opening manually). This is the central part of my script:
openParams = GetOpenDefaultParams(); openReturnParams = new PropVals(); newDoc = Open (fileName, openParams, openReturnParams); pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf; // get first pgf in flow
All works fine - for me it's a mystery, but a welcome one!
See the whole test script and test-file at my DropBox.