Question
How to cancel a BridgeTalkLongProcess
I have successfully implimented a BridgeTalkLongProcess from the AdobeLibrary1. In my application the user can select the thumbnails in bridge and then run an extensive processing routine in photoshop, with the status palette showing the progress. This can take a long time, and the user may decide to stop the process.
I have over-ridden the BridgeTalkLongProcess.prototype.send function to change the progress palette cancel button text from 'OK' to 'Cancel'. If I click on the palette progress cancel button while the script is running the progress palette does close, but the script continues to process the file queue in photoshop.
What I do not know how to do is send a message from bridge to photoshop to cancel the photshop script if the user clicks on the progress palette cancel button.
I think I will have to over-ride the progressDialog function and create another bridgetalk message to send a cancel order back to photoshop, where I can set a global cancel flag. In my photoshop remote script I can then regularily check the cancel flag status.
Am I on the right track?
Thanks
Rory
I have over-ridden the BridgeTalkLongProcess.prototype.send function to change the progress palette cancel button text from 'OK' to 'Cancel'. If I click on the palette progress cancel button while the script is running the progress palette does close, but the script continues to process the file queue in photoshop.
What I do not know how to do is send a message from bridge to photoshop to cancel the photshop script if the user clicks on the progress palette cancel button.
I think I will have to over-ride the progressDialog function and create another bridgetalk message to send a cancel order back to photoshop, where I can set a global cancel flag. In my photoshop remote script I can then regularily check the cancel flag status.
Am I on the right track?
Thanks
Rory
