To witness the issue to which I refer, follow these steps:
Create an AppleScript that simply contains one
Save this script as an .app file.
Run the .app file.
If you right-click the file's Dock icon, then left-click Quit, as depicted in the following screenshot:
you will observe that nothing happens. That is, the application remains open.
The keyboard shortcut, ⌘ command + Q, is similarly futile.
The only way to quit this application (excluding clicking "Force Quit" in Activity Monitor.app) is to click a button in the application's active dialog.
Is it possible to make an AppleScript application's inherent "Quit" function quit out of the application, even if the application is currently displaying a dialog when the "Quit" function is called?
display alert dialog and the
choose from list dialog behave in the same domineering manner as the
display dialog dialog.