When people are referring to a script, are they referring to javascript? To my knowledge there are 2 effective ways of doing what is being requested here. For starters, I have seen spreadsheets used to do exactly this, they are hard work to set up, but once setup, are very fast indeed. A few years back I wrote one in ods format for openoffice. But, there is one better method which I know of, it's extreme, and it's very iffy if this is okay, but I know someone that designed c++ code from the ground up, to have an embedded webbrowser with a farm database running in the background. The reason this was effective, was because they were able to parse the html code passing through it, to update the database automatically. To attack the next farm in the database, they would simply throw in a command, and it would bring up the next attack window and even tell them visually how many LC to attack with. It could predict exact resource levels based on a village scout. Reading the scout reports would update the farms details.
Now, I used this on the german server where I invented the tactic of destroying all production in your own villages, to make them pointless for long range nobling. I proved that you could succeed at this game without ever raising the levels of your production above 1. By doing this, you can go from 3 villages to 15+ in no time. I won't be using this tactic on this world however, I don't have anywhere near the amount of time required for this. Farming is something that can keep you up all damn night, and then those odd pricks that accidently leave a bunch of spears in a barb by accident. Annoying.