Progress Bar/Indicator displayed in Dock Icon

Hi All

Does anyone know how to display a progress bar in the Dock Icon via Applescript, e.g. like in Toast?

Have a nice day

simple timer based image swapping should do the trick… “set the icon image to (load image next)” in a loop where next gets set to the string name of the next image.

Thanks for your answer. This will work but I hoped for a more elegant solution:

I think I read or heard something like “Use the progrees bar with the Icon as target” some months ago. But I can´t remember anymore where it was.
This seems to be an Objective-C/Cocoa trick.
Hm I hope I will find this again