On 9. mai. 2007, at 16.31, stephan peterson wrote: Do you happen to know how to change a spot color to CMYK?
OK this is a bit embarrassing, I haven't really complied anything too special for you here, but this might put you on the path.. I read in a AI CS scripting guide that you can "force" a document to open as CMYK or RGB.. I did not get that to work here.. So assuming your document is CMYK, (you might have to figure that bit out for CS2, if you do, let me know) and assuming you have the object selected (I imagine you're looping through every object somehow) here is something to help you with the currently selected item..
tell application "Adobe Illustrator" tell front document set theColor to get fill color of selection if class of theColor is spot color info then set theSpot to spot of theColor set fourcolour to color of theSpot set fill color of selection to fourcolour end if end tell end tell
Hope that helps..
Wayne Melrose |