I have a bash script, connect to folder action in Automator. When I drop an image into ~/Desktop/Blur folder, it should generate the blur version into that directory.
I've tried
#!/bin/bash
# Change to the desktop directory
cd ~/Desktop/Blur
# Get the input filename
input_file="$1"
# Get the directory and base name of the input file
input_dir=$(dirname "$input_file")
input_base=$(basename "$input_file")
# Set the output filename
output_file="${input_dir}/blurred_${input_base}"
# Blur the image and save the result
convert "$input_file" -blur 0x8 "$output_file"
# Show an alert when done
osascript -e 'display notification "Image successfully blurred" with title "Blurring Complete"'
I've ran
it 10 times now and I saw nothing generate, but I kept seeing the alert success.
Steps
This is how I set it up
Can someone pls help ?

~/Desktop/Blur?