Select object by user defined properties

How to select object by user defined properties?
example:
name = mybox

select $mybox

AttachmentSize
screen_shot.jpg31.76 KB