Body:
I've noticed that Swift Quit is incorrectly sending a quit command to background menu bar apps, causing them to close entirely without any user interaction.
App being affected:
openusage
Expected Behavior:
Swift Quit should only quit apps based on its defined rules (e.g., when a user closes a standard window). It should not trigger a quit command on apps that are designed to run solely in the background/menu bar.
Actual Behavior:
The app openusage closes immediately after its panel window is closed. I ran a log stream in Terminal to see what was happening, and the logs show Swift Quit sending an unsolicited aevt,quit Apple Event to the app:
log:
2026-06-30 13:44:00.676690+0x1000 0x1c4ae Info 0x0 5920 0 openusage: (AE) [com.apple.appleevents:main] eEntitlements, token 1817/4247, designatedCodeReq = { ... "kTCCCodeIdentityExecutableURL"="file:///Applications/Swift%20Qui....app/Contents/MacOS/Swift%20Quit", "kTCCCodeIdentityIdentifier"="onebadidea.Swift-Quit" ...
2026-06-30 13:44:00.678546+0x1000 0x1c07e Info 0x0 5920 0 openusage: (AE) [com.apple.appleevents:receive] RECEIVED:(aevt,quit) {aevt,quit target=Swift Quit returnID=27931}...
2026-06-30 13:44:00.679030+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] Handling Quit AppleEvent
2026-06-30 13:44:00.679146+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] Checking whether app should terminate
2026-06-30 13:44:00.679299+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] Asking app delegate whether applicationShouldTerminate:
2026-06-30 13:44:00.679341+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] replyToApplicationShouldTerminate:YES
2026-06-30 13:44:00.679491+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] App termination approved
Workaround:
Adding openusage to the Swift Quit exclusion list stops this from happening, but ideally, Swift Quit should have better logic to detect true menu-bar-only agents (apps without a Dock icon or standard main window) so they aren't accidentally terminated.
Environment:
macOS: 15.7.7 Sequoia
Swift Quit Version: v1.5
Body:
I've noticed that Swift Quit is incorrectly sending a quit command to background menu bar apps, causing them to close entirely without any user interaction.
App being affected:
openusage
Expected Behavior:
Swift Quit should only quit apps based on its defined rules (e.g., when a user closes a standard window). It should not trigger a quit command on apps that are designed to run solely in the background/menu bar.
Actual Behavior:
The app openusage closes immediately after its panel window is closed. I ran a log stream in Terminal to see what was happening, and the logs show Swift Quit sending an unsolicited aevt,quit Apple Event to the app:
log:
2026-06-30 13:44:00.676690+0x1000 0x1c4ae Info 0x0 5920 0 openusage: (AE) [com.apple.appleevents:main] eEntitlements, token 1817/4247, designatedCodeReq = { ... "kTCCCodeIdentityExecutableURL"="file:///Applications/Swift%20Qui....app/Contents/MacOS/Swift%20Quit", "kTCCCodeIdentityIdentifier"="onebadidea.Swift-Quit" ...
2026-06-30 13:44:00.678546+0x1000 0x1c07e Info 0x0 5920 0 openusage: (AE) [com.apple.appleevents:receive] RECEIVED:(aevt,quit) {aevt,quit target=Swift Quit returnID=27931}...
2026-06-30 13:44:00.679030+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] Handling Quit AppleEvent
2026-06-30 13:44:00.679146+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] Checking whether app should terminate
2026-06-30 13:44:00.679299+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] Asking app delegate whether applicationShouldTerminate:
2026-06-30 13:44:00.679341+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] replyToApplicationShouldTerminate:YES
2026-06-30 13:44:00.679491+0x1000 0x1c07e Default 0x0 5920 0 openusage: (AppKit) [com.apple.AppKit:Application] App termination approved
Workaround:
Adding openusage to the Swift Quit exclusion list stops this from happening, but ideally, Swift Quit should have better logic to detect true menu-bar-only agents (apps without a Dock icon or standard main window) so they aren't accidentally terminated.
Environment:
macOS: 15.7.7 Sequoia
Swift Quit Version: v1.5