Hi Nicholas, thank you for being so patient with me. I feel like I'm asking such basic questions, but I am making progress!
Long story short, I have tried numerous methods, but what finally worked was deleting every indent on every line and hitting tab. Once I did it to the pink region, it was willing to work.
I then put the file in the same folder as my MXDs, and tried to run it and I got a line 30 "TypeError: object of type 'NoneType' has no len()", which I read was probably because it was waiting on an input (python - What is a 'NoneType' object? - Stack Overflow).
I renamed and replaced the file in your Scripts folder and reloaded the Map Index Toolbox into catalog, but this is a whole new realm for me, and it is obviously not pulling the py script when it runs. The results are the same as if I hadn't changed any code. I tried right clicking it in ArcToolbox and importing my py script, and that failed.
Creating the new Map Index shapefile
Opening map document Z:\Projects\60132\Maps\Strip Maps\Arc\0027-2016.mxd
Failed script MapIndex...
Traceback (most recent call last):
File "C:\Users\heather\Documents\ArcGIS\AddIns\npeihl-mapindextool-0da4e723ca4a\Map Index Toolbox.tbx#MapIndex.py", line 45, in <module>
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\utils.py", line 182, in fn_
return fn(*args, **kw)
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\mapping.py", line 1496, in ListDataFrames
result = mixins.MapDocumentMixin(map_document).listDataFrames(wildcard)
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\arcobjects\mixins.py", line 745, in listDataFrames
return list(reversed([fr for fr in self.dataFrames if wildcardmatch(wildcard, fr.name)]))
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\arcobjects\mixins.py", line 710, in dataFrames
return map(convertArcObjectToPythonObject, self.pageLayout.dataFrames)
File "c:\program files (x86)\arcgis\desktop10.4\arcpy\arcpy\arcobjects\mixins.py", line 694, in pageLayout
return convertArcObjectToPythonObject(self._mxd._arc_object.pageLayout)
AttributeError: 'unicode' object has no attribute '_arc_object'
Failed to execute (MapIndex).
Failed at Fri Sep 16 10:03:50 2016 (Elapsed Time: 4.12 seconds)
Suggestions?