Page 1 of 1

Convert shell script to Hazel

PostPosted: Sun Jan 21, 2024 11:19 am
by jannone
Hi - I'm wondering how to modify this Automator shell script to work in Hazel:

Code: Select all
while read f ; do
chflags hidden "$f"
done


I'm assuming that I need to replace f with $1, but not sure what to do with the "$f"

Thanks!

Re: Convert shell script to Hazel

PostPosted: Mon Jan 22, 2024 9:56 am
by Mr_Noodle
I'm not sure what this script is supposed to do. It is reading input. Are you entering filepaths manually to the script? Is there a file you are redirecting to the script?