Thank you for your script, now I can get coordinates of the first pathPoint.anchor from each subPath and not only from the first subPath.
To be perfect, I would like get coordinates of the entire outline of each subPath; is it possible ? Is there a limit of information for the variable xyArray ?