Ok please note maya would have given you the long name if it would have seen any possibility for naming collision. wich means sphere1 is a unique name.
So then theres no problem here:
ls -long sphere1
in your example this would probably work, didnt actualy test im not in formt of a computer right now.
The problem occurs when I have got multiple objects with the same name in the scene. attrFieldSliderGrp -q -at "object") does not return the short name. Using "ls -long attrFieldSliderGrp -q -at "slider1"" Maya returns 2 (or more) Values .