finding a color's co-ordinate

how can i use applescript to find a certain color in my screen, save that co-ordinates as a variable, and make the mouse right-click it?
the color would be in a random co-ordinate
anyone can help?

anyone?