Interrupt repeat loops with buttons
How do I make buttons available to the user while I run a repeat loop?
I'm doing a shell script in the background and I'm using a repeat loop to read out the log of the results. Meanwhile, I want to have a Cancel button available to the user.
The button however doesn't respond while the repeat loop runs, while the rest of my UI is in fact updating (based on the incoming log). I'm even using a one second delay at the beginning of the loop.
I'm using AppleScript Studio in Xcode/Interface Builder.
Thanks,
JW
MacBook 13.3" 2.0 GHz, Mac OS X (10.4.7), 1 GB RAM