Copy link to clipboard
Copied
Hi all.
I want to know how to check the presence
of a pathitems object in an open
document?
try like this:
-- if(activeDoc.subPathItems.length != undefined){
return:
-- undefined is not an object ....
Something like this?
if(activeDocument.pathItems.length > 0){
alert("A path exists");
} else {
alert("No paths exist");
}
activeDocument - not activeDoc
Copy link to clipboard
Copied
Something like this?
if(activeDocument.pathItems.length > 0){
alert("A path exists");
} else {
alert("No paths exist");
}
activeDocument - not activeDoc