Testing Adobe Photoshop support of JavaScript.
After editing a shape, it becomes a path, so it loses its proprieties; how to turn it back into a shape?
This script (allegedly) does just that: it gathers the path and opens a new layer with the reconstructed shape. Let's hope it works.
(See "In Photoshop, is there a script or method to directly convert path to shape layer?")