I'm still new with AppleScript studio but not to AppleScript and I'm having a bit of an issue making a program work the way I want to.
Right now I have a program that when you hit the "start" button it goes through a long loop that can take a long time to finish. The problem is since this happens inside "on clicked theObject" no other buttons are responsive after you click the "start" button.
Ideally I'd like to allow the user to hit the "cancel" button and break out of loop that starts when they hit the "start" button, just not sure how to do it since no other keys can even be pressed while the loop is going in "on clicked theObject."
A second question that is much less important... but still curious about. Is there anyway to rename a key after it has been pressed? I'd like the "start" key to become the "stop" key after the user presses it.
Thanks in advance, hope what I said made sense.
Right now I have a program that when you hit the "start" button it goes through a long loop that can take a long time to finish. The problem is since this happens inside "on clicked theObject" no other buttons are responsive after you click the "start" button.
Ideally I'd like to allow the user to hit the "cancel" button and break out of loop that starts when they hit the "start" button, just not sure how to do it since no other keys can even be pressed while the loop is going in "on clicked theObject."
A second question that is much less important... but still curious about. Is there anyway to rename a key after it has been pressed? I'd like the "start" key to become the "stop" key after the user presses it.
Thanks in advance, hope what I said made sense.