Copy link to clipboard
I have a script that places a Symbol, but it recognizes it only as the "Number" of the Symbol. ie if it is the 6th Symbol in my library of Symbols that I want to pull I set up my var as
var symbolNum = 6;
Is there a way I can reference that symbol by the Name in the Symbol Options,
so that if I change the order of my symbols it still pulls the correct symbol?
You can get the symbol by name like other items in Illustrator, with the 'getByName' method:
var doc = app.activeDocument;
var s = doc.symbols.getByName("DateField_over");