Answered
How to check the availability of selection
Hello to all !
I have a script fills in the selected area. But if the user has not made a selection, the string Mybounds = doc.selection.bouns an error. How I can check is the selection are not ?
Hello to all !
I have a script fills in the selected area. But if the user has not made a selection, the string Mybounds = doc.selection.bouns an error. How I can check is the selection are not ?
You could wrap (var myBounds = app.activeDocument.selection.bounds) in a try clause.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.