# Swift Quit Mac 版：关闭最后一个窗口时自动退出应用

_As of 2026-11-28_

- **Version:** 1.5
- **macOS min:** 11
- **License:** Free

Swift Quit 是一款免费开源的小工具：当你关闭某个 Mac 应用的最后一个窗口时，它会自动退出这个应用，就像 Windows 上的程序那样。它可以对所有应用生效，也可以只对你选定的应用生效。

On a Mac, closing a window with the red button usually leaves the app running. Swift Quit changes that: when the last window of an app closes, the app quits, as on Windows.
What it does well

Quits on the last window. Close the final window of an app and Swift Quit quits the app, with no Command-Q.
All apps or a chosen list. The rule can apply to every app or only to a list of apps.
Exclusions. Apps you want to keep running without a window, such as a mail app, can be excluded.
Stays in the background. It can start at login, and its menu bar icon can be hidden.

Who it is for
People who switched from Windows and keep finding windowless apps in the Dock.
Good to know
The developer's own description says to use it at your own risk: some users have reported windows closing when they should not. New releases are rare, and after updating you have to remove the old entry from the Accessibility list and add the app again. For precise rules of your own, Hammerspoon can script this behaviour.
How to install

Unzip the download if your browser has not done it already.
Drag Swift Quit to Applications.
The first time you open it, macOS asks you to confirm an app downloaded from the internet; click Open.
Grant access in System Settings → Privacy &amp; Security → Accessibility; without it, Swift Quit cannot see windows closing.

> Source: https://macsoftpark.net/zh/swift-quit/
