I've tried all but none worked.
The error that i get is that the requested font family is not available, but i got the font name by the following lines.
var myAppliedFont = myCharStyles[oneStyle].appliedFont;
var myFontStyle = myCharStyles[oneStyle].fontStyle;
...
var name2 = myName + "\t" + myAppliedFont + "\t" + myFontStyle + "\t" + myHScale + "\t" + myVScale + "\t" + myColorName + "\t" + myTint + "\t" + myBaselineShift + "\t" + myAppliedLanguage + "\t" + myBasedOn;
myData = name2 + "\r";
f.writeln( myData );
Thats what i don't understand.
The font is available but, when importing the file that was exported by script i get error in some fonts, and the font name is exactly as used in indesign.