Q: AppleScript application won't quit
{Note: Also posted in Snow Leopard section. I use both OS versions.}
Here's my simple Applescript application:
delay 60
beep 2
I run it. It has an icon in the Dock. I right-click icon and choose option Quit. It doesn't quit until the 60 second delay is over. Then, it quits before beeping. I tried putting a 6-second delay in a repeat 10 loop, but the app wouldn't quit while in the loop. I put 10 6-second delays in a row, but that didn’t work. I put nonsense commands (set yum to 1) after each delay. That didn't work. It appears that any upcoming delay prevents Quit from working.
It's ridiculous to need Force Quit to quit a simple AppleScript app. Any suggestions?
Mac Pro, OS X El Capitan (10.11.5)
Posted on Sep 13, 2016 10:32 PM