Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Edit single CMYK color - Applescript

$
0
0

My only last task is to edit a single CMYK color swatch in multiple files...

 

FROM: (Name: C=75 M=68 Y=67 K=90) (Color: C=75 M=68 Y=67 K=90)

TO: (Name: Pantone K) (Color: C=0 M=0 Y=0 K=100).

 

It is not actually a Pantone color - Just a required naming convention. Here is what I have, but it does not seem to be working. I have 5 other colors that this is working fine for. And ideas?

 

try

telldocument1

--Pantone K

setnew_definition6to{cyan:0.0,magenta:0.0,yellow:0.0,black:100.0}

setchange_swatch6toswatch"C=75 M=68 Y=67 K=90"

setcolorofspotofcolorofchange_swatch6tonew_definition6

setpropertiesoftheswatch"C=75 M=68 Y=67 K=90"to{name:"Pantone K"}


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>