Skip to main content
Known Participant
July 15, 2011
Question

Applied Graphic Style name from a document

  • July 15, 2011
  • 1 reply
  • 909 views

Hi,

   I need to get a graphic style name applied in a document.

  app.activeDocument.graphicStyles[0].name

  It gives the  graphic style name from the graphicStyle palete.  Dont know how to get the applied graphic style name from the document.

If anyone knows pls let me know...

Regards,

Sudha K

This topic has been closed for replies.

1 reply

Participant
July 19, 2011

Hi,

  I think u can get the graphic Style name by using

app.activeDocument.pathItems[0].fillColor.graphicStyle.name

Regards,

Mubeen

Known Participant
July 20, 2011

Hi,

  Its not working. Can u say anyother way to get the graphic style name applied in a document??

Regards,

Sudha K

CarlosCanto
Community Expert
Community Expert
July 20, 2011

this has been answered before, we do not have access to that information via scripting. The best you can do is to manually delete all Unused graphic styles in the UI, then you can loop thru remaining graphic styles in the document, like you already did, with app.activeDocument.graphicStyles[0].name