I created a script to loop through all video frames and run actions. I want to have a way to abort it if needed. The esc key is not working so well for this. Every now and then I can get it to trigger. However, I think the jsx is just constantly busy doing stuff that is doesn't allow the esc key to trigger the script aborting.
Does anyone know of a work around for this? I tried a palette Window (not officially supported, I know) with a button but the user can't get control of the window while the script is processing. I also tried adding an app level and doc level keydown event listener. However, I don't think the keydown event listener is supported at an app or doc level.
Am I just out of luck on this?
Well.... oops. I had my the contents in my loop in a try/catch which was catching the ESC command. I had the try/catch in place so if the selected video clip layer did not span the entire timeline then it would catch the error and just go to the next frame. Once I removed the try/catch the ESC works fine.