I'm trying to create a program that watches the activity monitor in safari or firefox for changes and flags them. I've had some success with this manually (that is using a screen shot and OCR), but this is a long, tedious, and error prone approach.
I was wondering how I could have the computer just copy the activity page into a text file, and then I could process the textfile and send a command back, flagging (most likely downloading) the additional content.
General summary:
-how do I get the computer (say from command prompt / terminal) to 'see' the contents of the activity log
-then I'm assuming that I can just copy the offending url from the text file and I can flag/download it
I'm working in command prompt for now, but I know C, C++, php, and java if a program written in one of those languages would be better able to handle my task. Also, I wouldn't be adverse to learning a new language if any of you think it would help.
Thanks!!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic