Question
verify if a selection exists
Sorry to bother You all with such a question, but how can I verify if an active selection exists in a document?
Actually I seem to be able to verify it by way of a whack try-catch-construction set to some selection-property (which returns undefined if no Selection exists), but obviously a more simple way should exist.
I want to do so in order to set up a condition to delete the Layer Mask if no Selection is active on creating an Adjustment Layer (a basic setting seemingly lost in CS4).
Thanks for any suggestions.
Actually I seem to be able to verify it by way of a whack try-catch-construction set to some selection-property (which returns undefined if no Selection exists), but obviously a more simple way should exist.
I want to do so in order to set up a condition to delete the Layer Mask if no Selection is active on creating an Adjustment Layer (a basic setting seemingly lost in CS4).
Thanks for any suggestions.

