I have an ActionScript Extension which produces a number of InDesign pages, and takes some time to process. As is the case for ActionScript Extensions, InDesign freezes during the Extension's execution, and the processing can't be stopped in the middle - even if it taking a long time and the cutomer wants to give up.
Is there a way to stop an ActionScript Extension's script in the middle? I need an elegant, customer-acceptable solution I already thought of the ActionScript periodically searching for the existence of a file, such as "c:\allowCOntinue.txt", and if it no longer exists (i.e., deleted by the user) then exit the extension. But that is mega-ugly.
Does Esc work?
If not, the only thing I can think of is to launch an external AIR app with a cancel button which can write that "Stop" data under the hood...