Is there a script that will replace a shape with another shape?

 From:  Michael Gibson
11945.15 In reply to 11945.13 
Hi stefano,

re:
> I was wondering - if the object is named - and i might be interested to
> swap all 'object 1's - Circle" with 'object 2 - Square'
> would that be an easy script?

Here's a simplified version.

This one does not do anything with selection, you put in 2 names and all objects with name #1 are replaced by objects with name #2

- Michael