Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

app.textFonts[i] references not working in AI 2017 Update (Javascript)

$
0
0

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


Viewing all articles
Browse latest Browse all 3671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>