Skip to main content
Inspiring
August 14, 2015
Answered

Finding a symbol item's name (or number)

  • August 14, 2015
  • 1 reply
  • 610 views

My script needs to find which of the currently selected symbol items has a particular name (or number, within the Symbols palette), and extract its coordinates.


Cycling through each symbol in turn seems quite straightforward, as does getting the coordinates. But despite looking through the Illustrator Scripting Reference (Javascript) I can't see how to retrieve the symbol's name (or number).

This is probably pretty basic stuff, but I'd be grateful for some pointers.

(And thanks again to all who helped me on my last visit here, about three years ago!)

This topic has been closed for replies.
Correct answer CarlosCanto

check this thread

How to import symbols from a symbol library?

1 reply

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
August 14, 2015
Inspiring
August 15, 2015

Thank you, CarlosCanto – the line…

var mySymbol = symbolDocument.symbols["Cube"];


…gives me what I needed. Much obliged, as always.