How would I change the following code (outJPEG section) if I'd like to have the original attribute table name (eg Adress) and the attribute field name (eg ZipCode) as file name? (Adress_ZipCode)
The code as I have it now would just name the output JPG after the field in the attribute table (ZipCode)
os.path.split is an option but I am not so familiar with python and cannot make it work..
# export as jpeg outJPEG = os.path.join(outPath, attr + ".jpg") #atrr and outPath are defined in another part of the code arcpy.mapping.ExportToJPEG(mxd, outJPEG, "PAGE_LAYOUT", 200, 200, 300, False, "24-BIT_TRUE_COLOR", 90, False)