From 0c691dab2a94dbedd434c3921d0e36dfed52d100 Mon Sep 17 00:00:00 2001 From: AuroraWright Date: Sun, 28 Jan 2024 13:20:14 +0100 Subject: [PATCH] Fix MacOSWindow.isAlive on recent macOS --- src/pywinctl/_pywinctl_macos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pywinctl/_pywinctl_macos.py b/src/pywinctl/_pywinctl_macos.py index 4256ab8..4286ebf 100644 --- a/src/pywinctl/_pywinctl_macos.py +++ b/src/pywinctl/_pywinctl_macos.py @@ -1299,7 +1299,8 @@ def isAlive(self) -> bool: set isDone to false try tell application "System Events" to tell application "%s" - tell window winName to set prevIndex to index + tell window winName + end tell set isDone to true end tell end try