How can I judge that no layer/layerset is selected
Hello Masters:
Javascript select the first layer or layerset as default even I did not selected any layer or layerset. So, a trouble appeared, How can I judge that no layer/layerset is selected in Javascript.
I have try this "if" Sentence:
if(app.activedocument.activelayer.typename=="LaySet") {
....................
But
If I select none layerset in the PSD file, the JS select the first layerset of layer as default. but it was not I wanted!
who can give me a new method to judge none layerset was selected in the PSD file by Javascript.
Tanks a lot.
