I see there is an Orientation value which will provide "landscape" or "portrait" values, but how do I detect an image that is (or is close to) a square?
Specifically, I wish to apply one rule to images that are square (or close to square) and another rule to images which are not. I have pixel width and pixel height but I don't know if I can combine those in a ratio somehow? If I could do that, then a ratio between, say 0.9 and 1.1 could be considered square and anything else not square.
Can I provide some sort of script to provide this value for Hazel to check, or do I need to build a script that decides which command to use and just have Hazel feed it all images?