Question
Extendscript: PathItem.length-1 don't select last Path if there's a Symmetry Path at the end

// Reference the active document
var doc = app.activeDocument;
// Check if there are any paths in the document
if (doc.pathItems.length > 0) {
// Access the last item using the length property (0-indexed)
var lastPath = doc.pathItems[doc.pathItems.length-1];
// Make the path active/selected
lastPath.select();
} else {
alert("No paths found in the document.");
}Photoshop version: 27.4
Hi, I am making a script and I realize when trying to get the last Path when there is a Symmetry Path being the end, the Path it takes would always be the 1st path. You can make your own document with 2 normal paths and the final being a symmetry path, and test the script yourselves.
If I am doing something wrong let me know and how to rectify it tq!
