[Javascript] How to choose gray stroke with the script?
Hi all,
I'm writing an automatic dieline converter and I stuck on this part:
CMYK document, a line colored as [GrayColor] / 100%K (not CMYK 0 / 0 / 0 /100 !) like this:
.
The command:
alert (Math.round (app.activeDocument.pathItems[0].strokeColor.gray)) returns 100,
but the line:
if ( Math.round(sourceDoc.pathItems[x].strokeColor.gray) == 100 ) { ...
changes nothing at all.
Any ideas what's wrong with my code?
cheers, RobWu

