I don't know Photoshop scripting. I know I can select many segments in a path with the direct selection tool. Photoshop shows they are selected by turning on the display of the control points and handles on both ends of the selected segments. I can see they are selected and I can delete the segments. The Scriptlistner records nothing as I make and only redords the delete when I delete them. I have no idea how to get the selected control points and selected segments. I have seen some scripts posted here that process path in the Path palette. Perhaps if you search for those you can see hot they processed the paths. When they get the control points perhaps the some attribute to indicated if they are actively selected. Here is what I tried to record with the scriptlistener. Onle two things were recorded. The play of my path action and the delete. The selections I made were not recorded but were made.
The script in this thread
had no problem duplicating that path I create into a second document.