https://cattowerbestcheapprice.blogspot.com/2024/02/photoshop-javascript-to-get-all-layers.html
Photoshop Javascript To Get All Layers In The Active Document