Skip to content

From Automator to Hazel

Bram Adams
Bram Adams
1 min read

Table of Contents

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:

computer

Bram Adams

writer, programmer

Comments


Related Posts

Members Public

Quick Capture Shortcut for 2023 Vault

Getting the Quick Capture Obsidian (Mac) shortcut working wasn't as I'd worried it would be. I just needed to change a few settings to the new value and change the to process tag.

Members Public

Showing Hidden Files on Mac

Mac Show Hidden Folders View Hidden Files in Finder In Finder, you can click your hard drive under Locations, then open your Macintosh HD folder. Press Command + Shift + . (period) to make the hidden files appear. You can also do the same from inside the Documents, Applications, and Desktop folders. (View

Members Public

Time Sharing

“Computer multitasking in single core microprocessors actually involves time-sharing the processor; only one task can actually be active at a time, but tasks are rotated through many times a second.” (Location 2169) “Screwing up two things at the same time isn’t multitasking.” (Location 2180) Project MAC, the world’s