Any way to access dock labels from apps? #3251
Answered
by
latenitefilms
carlos-gtz
asked this question in
Q&A
-
I would like to add a menu with slack notifications unread 🤔 The easiest would be to do some API access through REST... but if we already have the notification in the dock app... then that would be better as I wouldn't need to access Slack API and polling to get the notifications. Is there a way to access the Dock and read the label on an app (slack app) to use it in any cool way? |
Beta Was this translation helpful? Give feedback.
Answered by
latenitefilms
Jul 7, 2022
Replies: 1 comment 3 replies
-
You can read the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
carlos-gtz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can read the
AXStatusLabel
of the dock item via the Accessibility API.See: http://www.hammerspoon.org/docs/hs.axuielement.html