JPG & RAW conditionality

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

Moderator: Mr_Noodle

JPG & RAW conditionality Tue Dec 24, 2019 11:34 am • by digitalt
I am completely new to Hazel and loving the power - as I get into photography...

I have this exact issue: [url]https://www.noodlesoft.com/forums/viewtopic.php?f=4&t=7158
[/url] but in the solution:
Code: Select all
If (all) are met
    If (all) are met for (the enclosing folder)
        If (none) are met for (any of its sub-files)
            Extension is (JPEG)
            Name is (Name)

I am not clear how the
Code: Select all
Name is (Name)
part works. I can build absolute conditions for matching but can I build relative ones? Ie: Name != any file (name) in this sub/folder?

Sorry for the dim question, feel like I am missing something. Thanks in advance,

Merry Christmas!
digitalt
 
Posts: 2
Joined: Tue Dec 24, 2019 11:20 am

Re: JPG & RAW conditionality Thu Dec 26, 2019 1:16 pm • by Mr_Noodle
(Name) in this case is the name of the folder being matched. You are comparing it against the names of the files underneath it. The rule will ultimately match and operate on the folder and not any of the files under it.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: JPG & RAW conditionality Wed Jan 01, 2020 12:18 pm • by digitalt
Hi, still not getting the hang of this. I think it is the nesting...

I am shooting RAW and JPG photos and using hazel to split the types on import...

I then have a folder/sub:
60d Photos
- JPG
- RAW

I want to quickly review and delete the JPGs and then run a hazel rule that will look at the -JPG folder and remove (move to trash) files from the RAW folder if there is no .jpg with the same name.

Image

I don't know whether i should start at the top folder or perform the action on the RAW folder?

I have tried the following on the RAW folder with no luck.

Image

Any help much appreciated.
digitalt
 
Posts: 2
Joined: Tue Dec 24, 2019 11:20 am

Re: JPG & RAW conditionality Thu Jan 02, 2020 11:58 am • by Mr_Noodle
You need to do an extra level of nesting. Something like:
Code: Select all
    If (all) are met
        If (all) are met for (the enclosing folder)
            If (all) are met for (any of its subfiles)
                Kind is Folder
                Name is JPG
                If (none) are met for (all of its subfiles)
                    Name matches (name)


You might need to play with that but hopefully that will set you on the right track.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support