Hello everyone,
The script below (founded here on the forum) creates a Quick Selection based on a Path that works so much better than the new Select Subject function in my case...
Thing is I have to draw every time manually a path in order to run that quick selection script.
Wondering if there is a way to have the path creation scripted too, so all I need to do is to position it correctly if needed, say on my next shoot I moved the tripod and so on...
Thank you very much guys !

| app.activeDocument.pathItems[0].select(); |
| // ======================================================= |
| var idStrk = charIDToTypeID( "Strk" ); |
| | var desc7 = new ActionDescriptor(); |
| | var idnull = charIDToTypeID( "null" ); |
| | var ref7 = new ActionReference(); |
| | var idPath = charIDToTypeID( "Path" ); |
| | var idOrdn = charIDToTypeID( "Ordn" ); |
| | var idTrgt = charIDToTypeID( "Trgt" ); |
| | ref7.putEnumerated( idPath, idOrdn, idTrgt ); |
| | desc7.putReference( idnull, ref7 ); |
| | var idUsng = charIDToTypeID( "Usng" ); |
| | var idquickSelectTool = stringIDToTypeID( "quickSelectTool" ); |
| | desc7.putClass( idUsng, idquickSelectTool ); |
| | var idPrs = charIDToTypeID( "Prs " ); |
| | desc7.putBoolean( idPrs, true ); |
| executeAction( idStrk, desc7, DialogModes.NO ); |