Skip to main content
Known Participant
September 7, 2021

P: Using AppleScript – Could not complete the command because of a program error.

  • September 7, 2021
  • 14 replies
  • 7504 views

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 have wound back Photoshop to the previous version and the expected behaviour is restored.

This topic has been closed for replies.

14 replies

Legend
November 16, 2021

Thanks for reporting. Engineering is looking into this. 

Participating Frequently
November 3, 2021

Yep. Its no work around for me as I have multiple paths made and the error dialog blocks. I have verified my own scripts work on Photoshop 21 (22.0.0 and 22.4.3)... so something fell off ~22.5 like you say. I have opened a ticket and reported the bug with steps to repro. 

Known Participant
November 2, 2021

Confirmed the problem still exists in Photoshop 2022, my work around to use the latest is to catch the error in script, although it doesn't supress the error message, at least by doing so it will let the script continue. The multiple errors get tedious to clear unfortuntately.

Participating Frequently
November 2, 2021

Same here. Spent an hour debugging but very little script side to go on. Guess roll back or wait for fix...