TinyPNG is by far the best optimization I’ve tested. I’ve done extensive testing in the past and they came out best in regards of compressing and rarely quality loss. So that why I really like them.
Besides that I prefer to not be reliant on installing command line utility.
7 years later, and I found your macro and installed it and it works perfectly! I have been a regular user of TinyPNG for website work and it just made so much sense to automate the process with KBM.
It works for a Finder selection. But I have recently been using alternative Finder apps such as Forklift and Pathfinder. So the "Finder's Selection Collection" for the Execute Action does not work with these. Nor does the option to use "Running Application's Collection".
I will start investigating further, but perhaps someone has already encountered this issue and may have a solution at hand?
It's always good to jump in the deep end and give it a go yourself.
After a bit of experimentation, here is the change I finally ended up making, so that this works now in Forklift...