This seems overly complicated. But then I am unclear as to your purpose.
BTW: how is someone going to Select a hidden object? Do you always have Show/Hide on? What if it is off?
What is the point of selecting something hidden? If it is easy to select...then why bother having it hidden?