Take the example of an application with a default OK button (whose keyEquivalent is return).
When I click this button, the action it triggers may take 5-7 seconds.
The button’s enabled state is set to false, the window is not dismissed (it’s a utility panel) and there’s a progress bar that starts to animate.
If I accidentally make one more click on the OK button, the action is triggered once again, right after it ends up.
Is there a way to really inactivate the button during the script process?
(I tried to set the action button to
missing value, and set it back at the end of the script but the behavior remains the same.)
Any clue on this?