Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Finding a symbol item's name (or number)

Explorer ,
Aug 14, 2015 Aug 14, 2015

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!)

TOPICS
Scripting
600
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 14, 2015 Aug 14, 2015
Translate
Adobe
Community Expert ,
Aug 14, 2015 Aug 14, 2015
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 15, 2015 Aug 15, 2015
LATEST

Thank you, CarlosCanto – the line…

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


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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines