I'm trying to pretty much make selection of one object select another using a scriptJob. For instance, you have a cube and a sphere in a scene, if you click on the cube, it automatically runs a select -r to select the sphere. I'm sure this is easier than I can figure out. but what I have right now is:
scriptJob -event "SelectionChanged" "select -r sphere";
which works for if you change a selection, what'd I really like is something that does that but for a specific selection, and not a just a general selection change. Is there some way to create your own event that represents "select -r cube" or something? Any help from you MEL gurus would be much appreciated.