read exif line and sort files based on the info

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hi!
I have a Sony A7-3 and so my photos are ARW-Files with some little XMP-info.
Based on the "rating" info I want to sort my photos.
I'm not just familiar with deep dives in hazel, I'm the overall king of writing complex scripts. In fact, I have exactly one simple row for a OCRmyPDF, that's all. So please be kind and type slowly so that I can keep up :) !

So, I have hazel 5.1.1
I have exiftool from today
I know, when I bash
Code: Select all
exiftool file.arw -rating
... I get the correct value back.
Now my (much too simple) question is, how can I motivate a robot to read my files and sort them into the right subfolder?
It can be easy-scripted. If there's a script that reads rating=5 and sorts it into folder5, it's ok. I can do the same script for the other rating numbers.

thank you in advance!
erik
Black2Back
 
Posts: 3
Joined: Mon Apr 23, 2018 9:04 am

If you want to pass that value back to Hazel, you will need to use AppleScript. You can have AppleScript execute a shell script. Check the chapter in the help on AppleScript on how to pass the value back. If you run into specific problems, post back here.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support