How to select an object with object-name using script?

 From:  Cemortan_Tudor
9848.4 
& how should i select all unnamed (ex: hide/show unnamed)