Can I disable the Dock icon bouncing behavior of a particular OS X app?
Asked Answered
T

1

7

Is it possible to modify for example the Info.plist to prevent a certain app from making its Dock icon jump using -[NSApplication requestUserAttention:]? There is a system-wide setting no-bouncing which allows to disable the bouncing behavior completely, but that's not what I want.

Toting answered 7/7, 2016 at 11:12 Comment(5)
I don't think it is in direct ways.Info.plist give access to conf data of the application like permission, icon etc., but not to app behavior. There isn't an API opened by macOS to create those changes directly, so the only options left are changing the app code to ignore requestUserAttention which you need the source code for, or being good at reverse eng'. Another is playing somehow with the OS code, and the last are using tools like Hammerspoon which doesn't offer this specific option but with few twicks you might get something.Dependable
@Dependable Can you take a look at this one too: https://mcmap.net/q/1629739/-how-to-prevent-a-network-extension-icon-bouncing-inside-of-a-dock/3402095 In that case, there is a source code. But requestUserAttention is not used at all.Veronica
There's two options i see for implementation, for not writing twice, would remove the icon completely is an option, or you want the icon without the bounce?Dependable
Icon without the bounce would be preferred behaviourVeronica
@Dependable And I am referring to a linked question, not this one.Veronica
B
0

instead of modifying the Info.plist directly, try

defaults delete com.example.appname NSUserNotificationAlertStyle

And then logout to refresh. This will set its notification style to None, which should prevent icon bounce when requesting attention. This still fails if the app uses a custom implementation for that.

Bakemeier answered 12/10, 2024 at 13:54 Comment(1)
Not sure if this works, cause I can't test it. But I awarded points to you, just cause you provided at least something to solve this :)Veronica

© 2022 - 2025 — McMap. All rights reserved.