Replies: 4 comments 14 replies
-
Adding more information: Pock also has this mechanism implemented. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answer. I have been playing around with |
Beta Was this translation helpful? Give feedback.
-
Hello, i use |
Beta Was this translation helpful? Give feedback.
-
I also had problems querying Messages and WhatsApp with set appList to {"Messages", "WhatsApp"}
set totalUnread to 0
tell application "System Events"
tell process "Dock"
try
repeat with appName in appList
set unreadCount to value of attribute "AXStatusLabel" of UI element appName of list 1
if unreadCount exists then
set totalUnread to totalUnread + unreadCount
end if
end repeat
return totalUnread
on error errMsg
return 0
end try
end tell
end tell |
Beta Was this translation helpful? Give feedback.
-
Hi,
First of all, amazing library!! I have been using it for a while and is really amazing.
I have a proposal for a functionality that I would like to have: notifications within sketchybar.
There is a library called BTT to configure the touchbar to query the status of an app's badge (what the Dock shows). This is very useful because you can standardize completely to know if there are notifications in any of the apps (without having to search or rely on their apis).
They expose it through apple script, but I don't know if it is possible from there or you need to access it from the macOS API.
Would it be possible to have something similar? Right now it's the only thing I'm missing. Thanks you very much!
Beta Was this translation helpful? Give feedback.
All reactions