Just updated Illustrator (21 October 2017), and now all attempt to reference the list app.textFonts[i] (in Javascript) fail and show the following error:
Error 1200: an Illustrator error occurred: 1430996551 ('GFKU')
I have several scripts that reference app.textFonts or just textFonts
I even tested on the default script that the Javascript Illustrator Scripting Guide gives:
app.textFonts.length still works and outputs the proper number of fonts I have installed.
but any attempt to reference an index fails.
For example the following will throw the error:
var sTextFontName = app.textFonts[i].name
But this will not throw the error:
var nNumberOfTextFonts = app.textFonts.length
Update: .getByName does not work either. I can use a direct reference such as app.textFonts[642] or app.textFonts[112].name for instance, which both work. But trying to put a variable in there kills it. Even if I type case it using parseInt.
OS: OS X
Version: 10.13
Illustrator Version: 22.0.0