Page 1 of 1

OCR image and add text in comment field to file?

PostPosted: Thu Mar 28, 2024 5:22 am
by edwardsjethro
Hi, wondering if this is theoretically possible with Hazel…

On a folder, have a rule that passes the image to a bash script that OCRs it. Then take that output and insert it into the comment field in the file, so that it could be searched with Alfred or Spotlight.

Is that possible with Hazel?

Re: OCR image and add text in comment field to file?

PostPosted: Thu Mar 28, 2024 8:48 am
by Mr_Noodle
You can't pass data back to Hazel via shell scripts. You would need to use AppleScript for that. The manual has details on how to do that.