Skip to content

Commit

Permalink
Improve banner dismissal when dealing with many notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Dec 6, 2024
1 parent ef65f23 commit 4d0e4dc
Showing 1 changed file with 33 additions and 31 deletions.
64 changes: 33 additions & 31 deletions Workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
.scrollAreas[0]
.uiElements()
.map(banner => banner.actions().slice(-1)[0])
.reverse()
.forEach(banner =&gt; banner.perform())</string>
<key>scriptargtype</key>
<integer>1</integer>
Expand Down Expand Up @@ -224,37 +225,6 @@
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>Application("System Events")
.applicationProcesses.byName("NotificationCenter")
.windows[0]
.groups[0]
.scrollAreas[0]
.uiElements[0]
.groups()
.map(banner =&gt; banner.actions().slice(-1)[0])
.forEach(banner =&gt; banner.perform())</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>7</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>E718C2BF-B0EB-4C56-9702-77B670797A22</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -286,6 +256,38 @@
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>Application("System Events")
.applicationProcesses.byName("NotificationCenter")
.windows[0]
.groups[0]
.scrollAreas[0]
.uiElements[0]
.groups()
.map(banner =&gt; banner.actions().slice(-1)[0])
.reverse()
.forEach(banner =&gt; banner.perform())</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>7</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>E718C2BF-B0EB-4C56-9702-77B670797A22</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down

0 comments on commit 4d0e4dc

Please sign in to comment.