I'm really not sure where to start looking on this one.
I want my cocoa app to read the text from another application running on my mac. It is a simple text window, with copy-paste functionality. I would love to be able to find the window programmatically and drill down to some 'text' attribute, or maybe intercept each text drawing call, but would settle for automating switching to the window, selecting all, and pasting somewhere (every 100 milliseconds for example).
Any ideas?
UPDATE - I don't think either of the selections below will work - the accessibility inspector doesn't display the contents of the window I want to scrape, and it isn't applescript-able. Any other ideas? Even just away to automate switching focus, copying, and pasting.