Hi pymol gurus out there,

I'm trying to write a python script for a project and I need to know how to auto-name a selection. Is there a way in which  I can make the default 'sele' selection name become protein name-chain-residue name-residue number when I click on a residue? You know when you label a residue, it labels it to a format of resn-resi (e.g. TYR-37..). I want it to be in like that sort of format. 

Of course I want to know how to do this for more than one residue. Also I want to know how to turn this auto-naming on and off too.

Any advice will be greatly appreciated!!