Stop a script process with a "Cancel" button

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

jboissinot

Stop a script process with a "Cancel" button

Post by jboissinot »

Hi,

I display a progress bar with a "Cancel" button while the script is running. I can stop the script by pressing the "Esc" key but I would like to stop the script process with the "Cancel" button. What kind of command/event can I add to the button for doing this ?

Thanks