KScript wait for dialog box?
I have an online KScript that reboots the computer (MacOS) under certain circumstances. I open a "message window" informing the user to save their stuff and click Ok to reboot. The message window will go away in 24 hours if Ok isn't pressed.
Unfortunately, the KScript doesn't wait for the user to press "Ok" - it just proceeds to the next line and reboots the computer. Not good. Is there a way to make KScript "wait" for the user to press Ok or the timeout to arrive before continuing the script?
Please log in to answer
Be the first to answer this question