Hi t1d2c3,
IMHO you don't need a loop trough all characters.
Please try this instead.
var textInfo = app.activeDocument.textFrames.add(); textInfo.name = "textInfo"; textInfo.position = [30,-30]; textInfo.textRange.characterAttributes.autoLeading = false; textInfo.textRange.characterAttributes.leading = 40; textInfo.contents = "Abcdef";
Have fun