Skip to main content
Inspiring
February 19, 2018
Question

Spot - Pantone Color

  • February 19, 2018
  • 1 reply
  • 3617 views

Hi,

     I need to get spot pantone colors.  How can i get the pantone colors with that name and how to differenciate the below 2 ??

    Both are spot colors.  I need to get that PANTONE value (ie., 187). How can i differenciate and get those values with swatch names??

   

     Any specification is there to identify PANTONE colors??

  

This topic has been closed for replies.

1 reply

Community Expert
February 19, 2018

You could hunt for the name "PANTONE".

There is nothing special in a spot color if one is done by the user or used from a repository.

Perhaps two things can be different, but this is outside of the scripting DOM and is only visible with IDML or IDMS:

User defined spot for PANTONE Yellow:

AlternateSpace="NoAlternateColor"

AlternateColorValue=""

PANTONE color from repository for PANTONE Yellow C:

AlternateSpace="LAB"

AlternateColorValue="89.01960784313725 -1 111"

So you could fill a rectangle with a color, export to IDMS and see if properties AlternateSpace and AlternateColorValue have a value other than "NoAlternateColor" or an empty string.

Regards,
Uwe

Sudha_KAuthor
Inspiring
February 19, 2018

Hi,

     Thank you for your reply...

     I need to check indise application file.  How can i differenctiate pantone colors with others (sample my screenshots). Not using swatch name. Bcoz user can use pantone in name as a text.

Also  I want to check built in blace (ie., [Black]). How to check [Black] built in swatch??

Community Expert
February 19, 2018

Why do you think, that you are looking for text in the document?
I thought you like to look after (perhaps) the name of a color?

var colorArray = app.documents[0].colors.everyItem().getElements();

// loop and perhaps check for name:

for(var n=0;n<colorArray.length;n++)

{

$.writeln( colorArray.name );

};

See for other properties of colors here:

Adobe InDesign CS6 (8.0) Object Model JS: Color

Regards,
Uwe