Skip to main content
Known Participant
November 9, 2011
Question

spot color infomation not shown in Document info objects

  • November 9, 2011
  • 1 reply
  • 1341 views

Hi,

In the eps file, I have checked the Document info-->Objects menu in that spot color mentioned as "NONE"(refer img1.jpg). But in the same eps file Document info-->"Spot color Objects" menu its shows E(CMYK)(refer img2.jpg) that is spot color name. Could you please advise me why this difference occurs. Also I need to get this spot color object name via javascript, how to get this infomation?. I have attached the screen shot for your references.

Thanks for looking into this,

Maria prabudass

This topic has been closed for replies.

1 reply

Ten A
Community Expert
Community Expert
November 10, 2011

Hi.

Your Objects are gradient object. Its not a spot object. so you can get color name, get to gradientStops properties like below:

app.activeDocument.selection[0].fillColor.gradient.gradientStops[0].color.spot.name;

Ten.

Known Participant
November 10, 2011

Thanks for your help. Its working fine for pathItems. Could you please advise me how to get the same details(gradient spot information) for textframes.

Thanks for looking into this..

Ten A
Community Expert
Community Expert
November 11, 2011

Hi.

TextFrame color informations included under textPath property.

app.activeDocument.selection[0].textPath.fillColor.gradient.gradientStops[0].color.spot.name

If your selection is textFrames, add "textPath" after "selection[0]".

Ten.