1 Reply Latest reply on Oct 27, 2011 6:25 AM by Harbs.

    How to Stop an ActionScript Extension's Execution

    mlavie Level 1

      For CS5:


      Hi all,


      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.