Skip to main content
karthikS
Inspiring
February 16, 2016
Answered

How to remove swatches color in java script

  • February 16, 2016
  • 1 reply
  • 852 views

Dear Tpk & Friends

I would like the script to Delete the swatches in the below:

PositiveOvertracked (100,15,100,0)

NegativeOvertracked (15,100,100,0)

Is this possible?

Thanks!

This topic has been closed for replies.
Correct answer tpk1982

use the below simple and straightforward code. It will replace with "Black" color

mycolor = app.activeDocument.colors.item("PositiveOvertracked")

mycolor1 = app.activeDocument.colors.item("NegativeOvertracked")

mycolor.remove();

mycolor1.remove();

1 reply

tpk1982
tpk1982Correct answer
Legend
February 16, 2016

use the below simple and straightforward code. It will replace with "Black" color

mycolor = app.activeDocument.colors.item("PositiveOvertracked")

mycolor1 = app.activeDocument.colors.item("NegativeOvertracked")

mycolor.remove();

mycolor1.remove();

karthikS
karthikSAuthor
Inspiring
February 16, 2016

Dear friend TPK,

Thanks so match TPK (super), your coding working good.

Thanks