Try one of the following:
Text.place() (or any sub-objects)
That works fine - and looks like it's the preferred way to place anyway. Headless documents do speed up things enormously, so once again: Thank you very very much!
The advantage of using Document.place(), is that it gives a place icon, allowing the user the freedom to place exactly where he wants. Different methods for different uses...
Just one addition from my own experience: if there is an insertion point in the active document (e.g. text is selected), the InDesign.Place action does not give an icon, but just places it. But, quite naturally, Selections are not possible in Headless Docs. Nor are icons that indicate you should click somewhere in the invisible document .
To prevent that, insert the VB equivalent of
somewhere at the start of your script. (Wouldn't that fail in ID Server? Because you can't "select" something there?)
You're right; it fails in the headless documents we are discussing here, so I imagine it will fail in Server as well...