If no windows are open, Safari will quit. Otherwise, confirmation is required.
A very simple macro to prevent accidental quitting of Safari if one or more windows are open. An alternative to existing solutions that offer more (do you really need to know how many windows and tabs are open?) but that are more complicated.
Quit Safari- with confirmation check only if a window is open.kmmacros (4.9 KB)