Select item and run script

Hi,

I am looking for way to combine the selection command with python script, that works with the left mouse button. So, I want to select an object and run the script.

Python rhinoscriptsyntax has all sorts of object selection methods built-in, such as rs.GetObject(), rs.GetObjects(), etc… So you can select your objects within the script and also run a script with preselected objects.

–Mitch

I kow, but it does not work with the general right click. I would like to replace the normal selection into a script selection that always. I want to do it because I want a list of info about the selected object in the command line.