Illustrator- returning the fill color of a path object

Is there a better way for me to compare and change a fill color in Illustrator CS4?

Using my code below, the list that is returned for the fill color yields CMYK values carried out to many decimal places. Is there a better way to retrieve and return the CMYK values as an integer? I believe that would help make comparison and converting to new values a bit easier and safer.

I appreciate any help I can get.

Thanks,
Jeff

tell application "Adobe Illustrator"
	activate
	set thisDoc to current document
	try
	set sel to ((every path item of thisDoc) whose fill overprint is true or stroke overprint is true)
	repeat with i from 1 to count of items in sel
		set theItem to item i of sel
		--if theItem's fill overprint is true then
		set theItem's fill overprint to false
		set theFill to theItem's fill color
		set theFill to theFill as list
		set theFill to theFill as text
		display dialog theFill as text
		--return
		if theFill contains "CMYK color info74.60939884185867.57810115814266.79689884185889.843797683716" then
			--display dialog "I Do"
			set theItem's fill color to {cyan:0, magenta:0, yellow:0, black:100}
		end if
	end repeat
	end try
end tell

I figured I would post the solution that I was after in case anybody else is looking for something similar.


tell application "Adobe Illustrator"
	activate
	set thisDoc to current document
	try
		set sel to ((every path item of thisDoc) whose fill overprint is true or stroke overprint is true)
		repeat with i from 1 to count of items in sel
			set theItem to item i of sel
			set theFill to theItem's fill color as list
			set item2 to item 2 of theFill
			set item2 to (round (item2 * 100)) / 100
			set item3 to item 3 of theFill
			set item3 to (round (item3 * 100)) / 100
			set item4 to item 4 of theFill
			set item4 to (round (item4 * 100)) / 100
			set item5 to item 5 of theFill
			set item5 to (round (item5 * 100)) / 100
			set theInfo to (item2 & "," & item3 & "," & item4 & "," & item5) as text
			--display dialog theInfo as text
			if theInfo is equal to "69.53,67.19,63.67,73.83" then
				set theItem's fill color to {cyan:0, magenta:0, yellow:0, black:100}
			end if
		end repeat
	end try
end tell