Address Book - removing empty addresses

I’m trying to tidy up my Address Book after several imports from different sources have left it in a muddle. I’ve had success with stripping out lots of redundant data using applescipt, moving some of it into the right place, etc.

But I have over 500 entries with a superfluous address field within them. Some of these entries may have a home address, but address book is showing an empty work address too, or vice versa. Any suggestions on how to go about it?

A second problem is that some entries have two identical or near-identical addresses within them. I can’t even construct a way to find these using applescript. I’m rather confused by having to refer to ‘item 1’ or a person or an address.