Basically, I'm bringing layers into arcmap,repairing the data sourc, and then saving out the layers manually so that the new source is saved. This is very time consuming because I have several hundred layers. Repairing the data sources is fairly easy but saving each layer to disk is timely. I have also been overwriting the previous layer file to keep the name the same. Lastly, the alias name does not match the layer name, so I can't use lyr.saveACopy because that uses the alias name.
import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") for lyr in arcpy.mapping.ListLayers(mxd): lyr.save()
but no luck...