I want to create a button in ArcCatalog that takes the metadata from the selected file in ArcCatalog and prints it to a text file. The metadata extraction part is done, and I have succssfully tested it on a number of GIS datasets. However, I cannot figure out how to get information about the currently selected item in ArcCatalog.
Is this possible in ArcCatalog? I expected for there to be something simple, and similar to the Arcpy.mapping.MapDocument("CURRENT"), but I can't find anything.
I would prefer to keep this in python, but an ArcObjects solution is also possible (just not preferable)