Skip to content

Commit 4ff47c4

Browse files
committed
feat: more delays
1 parent 73f0f08 commit 4ff47c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/macOS/enableDoNotDisturb.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ set command to "
5757
tell application \\"System Events\\"
5858
key down 63
5959
key down \\"c\\"
60-
delay 0.5
60+
delay 1
6161
key up \\"c\\"
6262
key up 63
63+
delay 1
6364
end tell
6465
6566
tell application \\"System Events\\"
@@ -71,7 +72,7 @@ set command to "
7172
7273
tell doNotDisturbCheckbox
7374
if doNotDisturbCheckboxStatus is false then
74-
perform action 1 of doNotDisturbCheckbox
75+
click doNotDisturbCheckbox
7576
end if
7677
end tell
7778
end tell

0 commit comments

Comments
 (0)