This is a long shot but thought I'd ask.
Is there any way I can locate a spot on the page by its x,y values, and sample the colour on the page at that point? Ideally I would like to get a combined ink value, and then act accordingly with either using dark or light text.
The ESTK is limited with the eyedropper functions in the Object Model Viewer so I am not holding my breath.
I don't think so.
It MAY be possible to get the RGB values in AppleScript, but I don't know enough AppleScript to be sure.