Answered
How to sure that all paths are deselected
I create some javascript for PS but it failed if some path is selectrd/active, how to prevent this and to be sure that all paths are deselceted=inactive?

I create some javascript for PS but it failed if some path is selectrd/active, how to prevent this and to be sure that all paths are deselceted=inactive?

This does the job:
for(i=0; i<app.activeDocument.pathItems.length; i++) {
app.activeDocument.pathItems[i].deselect();
}Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.