I think that is what I am doing in 2 and 3 of my post. I have my script in a toolbox and am running it from that tool box. But the only way it completely works is if the attribute table is not open. It can be a layer in the TOC and turned on, but it cannot be open for viewing the attribute table.