Get the Badge Count for an Application

Is there a way (AppleScript or otherwise) to get the badge count for an application. For example I want to get the count of unread emails or slack messages or 0 / empty / blank if there are none.

Hey @jamesvanboxtel,

No way I know of via scripting of any kind.

If you can capture the icon, you might be able to OCR it.



Yikes I guess I could