How do I capture the source for the ArcGIS online Bing Imagery currently referenced in a series of mxds so as to change them to a newly acquired image source? I thought that maybe this data is cached and I could access that....not sure where to go from here, but the following code does not work
import arcpy
refLayer = "C:\Users\my_user_name\AppData\Roaming\ESRI\Local Caches\MapCacheV1\maps.live.com_Aerial_en-US\MicrosoftVE" #my guess at the location of the ArcGISONLINE BING IMAGERY
newImage = "G:\GIS\IMAGERY\8-28-2012_Ortho.tif"
mxd = arcpy.mapping.MapDocument(r'G:\GIS\volume1.mxd')
for df in arcpy.mapping.ListDataFrames(mxd):
for refLayer in arcpy.mapping.ListLayers(mxd, "Bing Maps Aerial", df):
arcpy.mapping.InsertLayer(df,refLayer,newImage,"BEFORE")
arcpy.mapping.RemoveLayer(df, refLayer)
print 'finished'