Thanks Vern. I'll have to hunt up my notes on that one, as I'm still knee deep in the select layer script. Select layer should really be done by now, but I keep finding things I have to account for.
So far I've done:
non-active switch layer trees
global visibility
Still to do:
layer sorting (in progress)
a few other things I really want
I could probably slap select layer together now, but I was kind of disappointed that I released the first version without enough testing.
Got a call tonight saying I'm off work tomorrow due to weather (we've got freezing rain here), so that'll be one more day anyway.