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:

zettelcomputer

Bram Adams

writer, programmer

Comments


Related Posts

Members Public

June 06 2023

City on fire (hot!)

June 06 2023
Members Public

Issue 12: Smaller Programs, Longer Walks

The more we escape our heads, the deeper we get tangled.

Issue 12: Smaller Programs, Longer Walks
Members Public

Jun 03 2023

latitude and longitude logic, the hardest part of programming is naming, spoiler for a chatgpt plugin im working on, lazy plot devices

Jun 03 2023