File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments