@John – Your code is working.
The undo by the name of "Indent Paragraphs" is available in all documents you successfully used in the for loop.
I tested it with InDesign CS6 on Mac OSX 10.7.5.
You mean my script is working?
What if I use Indesign CS5 in Mac OSX 10.7.5?
I will tast.
@John – Why do you think it is *not* working?
It does what you have coded:
Duplicate the first selected object to the first master spread of every other document that is open.
The whole action can be undone when one of the other documents get the focus.
I use win 7, cs6
so, I don't know
may be win 7 and mac have something diffident
it works in mac
but I don't know how it unfuncton in win7