HAZEL MATCHING FILE RULES

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

Moderator: Mr_Noodle

HAZEL MATCHING FILE RULES Thu Sep 24, 2015 12:25 pm • by mbravo
Hello,

I was trying to figure out if this was possible while using Hazel.

What I want to do is when Hazel sees a PDF that has been highlighted RED I would like for it then to highlight the matching indesign file with the same exact name RED as well. If you need me to explain more in depth please feel free to ask. Thanks so much for your help guys.

-Max
mbravo
 
Posts: 3
Joined: Thu Sep 24, 2015 12:23 pm

Re: HAZEL MATCHING FILE RULES Thu Sep 24, 2015 12:30 pm • by Mr_Noodle
You would need to do something like:
Code: Select all
If (all) are met
    Kind is Indesign <<<whatever it is you use to identify these file>>>
    Name matches (• file name)
    If (all) are met for (the enclosing folder)
        If (all) are met for (any of its sub-files)
            Kind is PDF
            Color label is RED
            Name matches (• file name)

To get nested conditions, hold down option while clicking the + button. (• file name) is a custom attribute you create which should be set to match "anything". What the above is doing is matching the indesign file if it has a sibling file with the same name, a red label and PDF.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: HAZEL MATCHING FILE RULES Thu Sep 24, 2015 12:35 pm • by mbravo
That looks amazing, I'm sorry I'm a super novice in apple script. Would I make it run that apple script

" If (all) are met
Kind is Indesign <<<whatever it is you use to identify these file>>>
Name matches (• file name)
If (all) are met for (the enclosing folder)
If (all) are met for (any of its sub-files)
Kind is PDF
Color label is RED
Name matches (• file name)
"

I would need the .idd file to be highlighted if the corresponding .pdf file is red?
mbravo
 
Posts: 3
Joined: Thu Sep 24, 2015 12:23 pm

Re: HAZEL MATCHING FILE RULES Fri Sep 25, 2015 3:00 pm • by Mr_Noodle
That isn't AppleScript. That's an actual rule.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: HAZEL MATCHING FILE RULES Mon Sep 28, 2015 11:32 am • by mbravo
So If I run all of these conditions what it would do is highlight the same file name with a red label? I'm trying to attack a photo of what I have set up for these rules but I'm having problems with it.
mbravo
 
Posts: 3
Joined: Thu Sep 24, 2015 12:23 pm

Re: HAZEL MATCHING FILE RULES Mon Sep 28, 2015 12:08 pm • by Mr_Noodle
It does what you originally asked though you need to tweak it. It's important that you study it and try to understand what it does and how it does it. If you need to post a photo, you need to use a photo sharing site and then use a link to that here.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support