Hello, according to the current script:
>>> import arcpy
... mxd=arcpy.mapping.MapDocument(r"JeremyJones_Enbridge2012.mxd")
... for lyr in arcpy.mapping.ListLayers(mxd):
... if lyr.supports("DATASOURCE"):
... mxd.findAndReplaceWorkspacePaths(r"C:\ENBRIDGE2\GIS_DATA\Imagery\July2011Aerials\", r"E:\Enbridge\GIS_DATA\Imagery\2011Aerials")
... mxd.saveACopy(r"Temp2.mxd")
The reason why it is failing, is because according to Python syntax, there needs to be an indentation after the for loop and after the if statement. For example:
import arcpy
mxd=arcpy.mapping.MapDocument(r"JeremyJones_Enbridge2012.mxd")
for lyr in arcpy.mapping.ListLayers(mxd):
if lyr.supports("DATASOURCE"):
mxd.findAndReplaceWorkspacePaths(r"C:\ENBRIDGE2\GIS_DATA\Imagery\July2011Aerials\", r"E:\Enbridge\GIS_DATA\Imagery\2011Aerials")
mxd.saveACopy(r"Temp2.mxd")
Give this a try and see if it works for you.
Thank you.