My dilemma lays in the pathItems (not the file path, but those vector paths in the tab next to the layers).
I want my script to react to which one of several paths is currently selected. Is there any way to get the index or name of the currently selected path in Photoshop through JavaScript (alternatively through something else)?
I have not found any documentation on this and would like to ensure that I haven't just overlooked something obvious.