if file exists…

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

Moderator: Mr_Noodle

if file exists… Thu Feb 10, 2022 10:09 am • by Armando
Maybe a silly question but how do you write a rule such as; "if file exists: do not copy file".
How do you insert a specific "if" in a rule, not the "if All, etc."?

Thank you
Armando
 
Posts: 9
Joined: Fri Nov 10, 2017 2:43 pm

Re: if file exists… Fri Feb 11, 2022 9:02 am • by Mr_Noodle
I don't quite understand your example, but if you are referring to nested conditions, hold down option which will change the + button. Check the manual on nested conditions for more info.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: if file exists… Fri Feb 25, 2022 1:39 pm • by Armando
Not exactly.
Say I have a rule that creates an alias in a specific folder if the document is new.
What I had is that for each recurse Hazel created tons of alias of the same document because every time it saw it as new.
I need to tell it to run the rule once and stop if an alias of the master doc is already there
Armando
 
Posts: 9
Joined: Fri Nov 10, 2017 2:43 pm

Re: if file exists… Mon Feb 28, 2022 10:38 am • by Mr_Noodle
You should do something like add a tag to the file to indicate that it has already been processed. That, or move the file to another location so that Hazel doesn't have to scan it again.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support