When running my script via ArcToolbox, it takes 1-2 minutes when using the ListLayoutElements for loop. Both when using "TEXT_ELEMENT" and the "MAPSURROUND_ELEMENT". Other for loops are fine (ListLayers). Replacing the text or moving the scale bar is not the problem, it is just the single lines of code:
for elm in arcpy.mapping.ListLayoutElements(MXD, "TEXT_ELEMENT"):
&
for elmScaleBar in arcpy.mapping.ListLayoutElements(MXD, "MAPSURROUND_ELEMENT"):
Why is this happening? When I run it in the arcpy window, it is lightening quick. I've built a brand new MXD too.Thanks, ryan