Skip to content

From Automator to Hazel

Reasoning: Multiple screenshots would lock up entire Mac on shortcuts thread 202301100128, which I couldn't have because I use Alfred SC to run a quick capture Obsidian shortcut

Hazel seems to fix this problem but came with it's own issues. It compressed all the (already compressed) images in the folder at init time, which was annoying.

I had to change the following:

Automator

for f in "$@"
do
  /opt/homebrew/bin/pngquant 64 --skip-if-larger --strip --ext=.png --force "$f"
  /opt/homebrew/bin/zopflipng -y "$f" "$f"
done

Hazel

https://bram-adams.ghost.io/content/images/2023/01/hazel-compress-Screenshot-2023-01-15-00-54-11.png
hazel compress Screenshot 2023-01-15 00-54-11.png
/opt/homebrew/bin/pngquant 64 --skip-if-larger --strip --ext=.png --force "$1"
/opt/homebrew/bin/zopflipng -y "$1" "$1"

In addition, Hazel kept showing this weird error and refused to process newly inserted screenshots. Rules were matching but the workflow wasn't firing

Noodlesoft Forums • View topic - hazel stopped working unless 'forced'

HazelHelper\[99678\] Attempted to run worker on undeployed folder

I had to delete folder and run the whole thing again from scratch to "unstuck" it.

This part especially pissed me off because all the online discourse around Hazel was so positive that I wasn't able to find a good centralized repository with troubleshooting -- and the logs + UI were less than helpful to say why the match was happening but the rule was failing.

am i the only person to say something negative about hazel wth is going on with this app its so weird to maneuver
https://bram-adams.ghost.io/content/images/2023/01/hazel-at-blank-Screenshot-2023-01-15-00-54-49.png
hazel at blank Screenshot 2023-01-15 00-54-49.png

*date added at… (very unhelpful!!)*

Resources:

Comments