At 11:07 PM 1/31/96, Matthias Ulrich Neeracher wrote: >wsalivar@mv.us.adobe.com (Bill Salivar) writes: >>I am experiencing a problem when running the MacPerl Tool under MPW. When >>executing the 'system()' call within a loop, I am unable to terminate either >>the script or MacPerl because Toolserver is trapping the <Command><.> >>event. Thus, Toolserver quits but, of course, is restarted at the next >>iteration of the loop. The event never reaches Perl or MPW. Is there a >>better way to do this (beyond not using the system() call)? > >I suspectt that there is no real good solution, but have you tried switching >MPW into the foreground first? > Yes, since Toolserver is initially run in the background, MPW remains in the foreground until switched. BTW, Toolserver performance is dramatically improved when run in foreground. Thanks.