3 Replies Latest reply on Dec 15, 2008 1:41 AM by (Enzo_Cappelluti)

    Modify a color into Pantone with JS

      Hi.
      I'm working on a application in Javascript. My claim is to manage the colors in my document. So, for example, I have to change some specific colors in "spot" or "process" model.

      if (value==1){
      app.activeDocument.colors.item(7).model=ColorModel.spot
      }

      It works!
      My question is this: how can I say "app.activeDocument.colors.item(7)" have to be the "PANTONE 200 C"?
      I tried to use "importAdobeSwatchbookSpotColor" like this:

      app.activeDocument.importAdobeSwatchbookSpotColor("PANTONE 200 C")

      but it's useful just to add new Pantone colors, while I don't know how to change an existing color into a specific Pantone

      Thank you very much
      Enzo