Way to make icon blink?

Using Vision 8.1.16.

My applications lets users send messages to each other. Right now the way they know this is when they have the application open, there’s a blinking icon that lets them know.

However, many times users will minimize the project. I would like it if I could force the icon to blink when they have messages.

image ← this is what I would like to make blink.

Is this possible?

Maybe this:

from javax.swing import SwingUtilities

window = SwingUtilities.getWindowAncestor(someComponent)