There is a particular group of idoc hunters on Atlantic, whom are also gold and rare sellers for real cash, that are using something like this to inventory entire houses while they search for idocs. They don't see into the chests but they do spot every valuable item in all public houses and record it to file.
When a house goes idoc they pull up the file and know if an item is in the house they might want, and get a good idea of the caliber of loot likely to be inside. I learned about this from an ex-player who temporarily returned for the expansion. According to him they were searching all vendors and recording contents to file anyway so this wasn't a big jump for them.
I'd be weary of writing any "record everything to excel" type scripts, the game requires people who want to play for it to survive and the more successful these people are the fewer others want to play. I know this is off topic a little but "all items to excel" is a bad idea, unless used like it is in most scripts where it just scans a few chests actually in use.
Sorry if I misunderstood the goal for your script.