Skip to main content
Participant
November 23, 2019
質問

Javascript Illustrator: Error 1302

  • November 23, 2019
  • 返信数 1.
  • 2596 ビュー

I've been working with javascripts to automate generating of logos in Illustrator.

It's been working perfectly until now.

 

All of a sudden I get this message "Error 1302: No such element... -> if(docRef.textFrames[index]{"
(var docRef=activeDocument).

This error suddenly occurs in many of my scripts, but not all, and I can't figure out what has changed.
Can it possibly be a matter of updating to cc2020?

Happy for all help!!

このトピックへの返信は締め切られました。

返信数 1

CarlosCanto
Community Expert
Community Expert
November 23, 2019

index is out of range, are you by any chance Outlining text? if so, then you need to loop from the bottom up (in the stacking order);

Participant
November 25, 2019

Thanks for guiding me back on track. I didn´t consider looking for errors in my inDesign document, I was only searching in the javascript file. During my testing I had saved my master inDesign file in an edited state. What should be a text-layer had become an objec layer and was not recognized by the javascript file. Adding the right text layer and removing the object layer fixed the issue. Thanks!