You are trying to do this in what language? C#?
I try the exportFile method using named parameters in InDesign CS5.5 windows, same above error shown to me with InDesign Desktop version.
the few lines of code has the named Parameters as geometricBounds, thats works fine, so that i think the same approach will work on the exportFile method too.....
var doc = app.documents.add();
is there any changes?
Does that really work? Or does it just not throw an error?
In any event, TextFrames.add() takes an object containing creation properties for the new textframe as its last argument. That is typical of .add() functions, but it is not at all the same as passing parameters by name.