I am trying to make changes to titles on multiple mxds instead of having to open 1 by 1 but keep getting an error.
import arcpy.mapping as mapping, os for root, dirs, files in os.walk(r"F:\Final Maps\New folder"): # GetPArameterAsTExt(0) for name in files: filename = os.path.join(root, name) if ".mxd" in filename: mxd = mapping.MapDocument(filename) for map in mxd: for elm in arcpy.mapping.ListLayoutElements(map, "TEXT_ELEMENT"): if elm.text == "TEST 90666": elm.text = "9067" This is the error that I am getting:
