There are ample supports(scripts) available on how to override master page item on a specific document page but my problem is, I've added new Master spread based on another Master spread where in newly added Master spread I need to override all Master page items.
works well if you need to override Master page items on document pages but what works for overriding the Master page items on Master page e.g.
Comparable code worked for me (in CS4 -- the machine I had handy is one I use for supporting customers on older versions). Are you sure that your destinationMasterPage was a page and not a spread? That would cause a failure.