The issue is on Adobe community but I can’t post the link here.
The issue is summarised as:
Since upgrading Photoshop to 22.5.0 on my Mac OS 11.5.2 I have a problem with the following command in all my AppleScripts that feature it:
make new path item with properties {entire path:PathDetails, name:“Path Name”, kind:normal}
Photoshop will throw the error “Could not complete the command because of a program error.”, but will continue on and execute the above command anyway.
I wondered if anyone else has encountered this and/or found a workaround?