A total noob here:
Users here add a picture to a map using the 'add data' Their first task is to right-click the jpg in the Table of Contents, select 'properties', select 'symbology' and then 'Classify' and then choose a new colors for the different ranges (to make the background transparent).
I can create a model to do this and, alternatively, can write a arcpy script to do this but in both cases, I have to hard-code the name of the input layer.
QUESTION: How do I use the selected layer in the TOC (i.e. clicked via the mouse and is now highlighted) as the input (and output) to my script?
Ideally, the user would add the picture, click on it to highlight it (in the TOC) and then hit a key combination to execute the script. Any help is appreciated!