I don't know why it does that. You can try checking the content of pathItems
and see if it actually contains anything, but I don't know if you can do that from within the program you're writing the script in. I have no experience in writing scripts with Adobe.
Traevel 216 Light Poster
diafol commented: Excellent example of what Daniweb is all about. Hats off to you. +15
cereal commented: +1 +14
rproffitt commented: Web developers, second verse! +6
pixelsoul commented: Good suggestion +8