Comment by hirvi74

5 hours ago

Just spitballing here, but I know notifications are stored in a sqlite3 database. You might be able to query the count based on application type and use that?

Are they? I'm not so sure. If they are you could set a watcher on it to receive filesystem notifications when it changes.

I think you can get the info from LaunchServices using `lsappinfo` command.