Hi I am trying to script illustrator to convert all process color items in a document to an equivalent spot color.

I can create the spot OK and select items (path, compound path, text etc) ok within the doc but when I query the color property on the item I just get a response of 1 no matter what color the item is. I have tried every way I can think of to get the real value of the color property but nothing seems to work.

Any ideas????

Sample code (this is in JavaScript)

actDoc = activeDocument
myPathItems = actDoc.pathItems
chkItems = myPathItems.length;

for (i = 0; i < chkItems; i++){ myPath = myPathItems[i];

if (myPath.filled){
myCol = myPath.fillColor;
alert ("Fill Color " + myCol.color.toString());
}
}

This returns a value of 1 no matter what the color of the path is.

cheers
Greg