Illustrator Cs2 change fill colour

Hi Im trying to change the fill colour of several obejects where the fill colour is 15%black to 100% black

set fill color of every path item of layer "squares" of document 1 whose fill color = {cyan:0.0, magenta:0.0, yellow:0.0, black:15.0} to {cyan:0.0, magenta:0.0, yellow:0.0, black:100.0}

What is it im doing wrong, tried various different changes on the above coe but no luck so far

Thanks

Hi

Try this for CS4:

tell application "Adobe Illustrator"
	set (fill color of every path item of layer "Squares" of document 1 whose fill color is {class:CMYK color info, cyan:0, magenta:0, yellow:0, black:15}) ¬
		to {cyan:0, magenta:0, yellow:0, black:100}
end tell

Hi Pidge,

Worked a treat, thanks so much