While reading the Noodlesoft forums I stumbled upon the buzz which pointed me to Adrian Logue post about how to get Black and White Extension Icons in Chrome.
There are two things “wrong” with the post from Adrian:
- He is describing setting this up in an older version from Hazel which doesn’t has support for Pixel Width and Pixel Height (or at least I have them as options)
- He mentions that the size of the Extension Icons are 19×19.
To me it looks like that the size of the Extension Icons are NOT only anymore 19×19, my extensions have a lot of different sizes, starting from 16×16 and ending at 128×128.
So I did write up a quick applescript which checks for specific sizes and also if the image is a square.
Note: 128 x 128 is a size also being used by the Apps display in Chrome, so maybe you want to remove that value form the list.
The top part of the script is quite useful for debugging in the applescript editor and doesn’t matter when you run it in Hazel.