Skip to content

Commit a9c1aa1

Browse files
committed
feat: more logging
1 parent 174c7c3 commit a9c1aa1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/macOS/enableDoNotDisturb.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ on findDoNotDisturb(e)
128128
129129
try
130130
repeat with k in UI elements of e
131+
try
132+
log ("Entering element: " & (name of k) & " (" & (role of k) & ")")
133+
end try
134+
131135
set found to my findDoNotDisturb(k)
136+
log ("Exiting element")
132137
if found is not missing value then return found
133138
end repeat
134139
end try
@@ -151,7 +156,15 @@ tell application "System Events"
151156
set roots to UI elements of window 1
152157
153158
repeat with r in roots
159+
log ("Entering root: ")
160+
try
161+
log (" - name: " & (name of r))
162+
end try
163+
try
164+
log (" - role: " & (role of r))
165+
end try
154166
set doNotDisturbCheckbox to my findDoNotDisturb(r)
167+
log ("Exiting root")
155168
if doNotDisturbCheckbox is not missing value then exit repeat
156169
end repeat
157170

0 commit comments

Comments
 (0)