Page 1 of 1

tagging files: one rules works, one not

PostPosted: Fri Aug 23, 2013 10:29 am
by Vlad Ghitulescu
Hello!


I have a PDF-file named "Rechnung 20130823 Kopfhörersplitter.pdf" (= bill 20130823 Headphonesplitter) in a folder "... /Rechnungen/Hardware/2013" (= bills/hardware/2013).

I have the following Hazel-rules for the folder "Rechnungen":

1.- run rules on subfolders (as here described: http://www.noodlesoft.com/forums/viewtopic.php?f=4&t=470)
> IF: kind is folder
> DO: run rules on folder contents
2.- tag "rechnung" for all files
> IF: any file
> DO: add OpenMeta tags "rechnung"
3.-"Rechnung 2013..." --> tag "2013"
> IF: file name contains "Rechnung 2013"
> DO: add OpenMeta tags "2013"

The third rule doesn't work and I can't figure why.

Do you have any idea?

Thanks!


Kind regards,
Vlad Ghitulescu


PPS Hazel 3.1.5 (build 1038) on Mac OS X 10.8.4 running on an 27" iMac 3.4 GHz Intel Core i7

Re: tagging files: one rules works, one not

PostPosted: Fri Aug 23, 2013 12:38 pm
by Mr_Noodle
Only one rule can match a particular file at a time so you need to either (a) combine the actions of the last two rules or (b) do things in different steps with using something like color labels to indicate to Hazel at which step you are. Option A is easier but results in a bit of redundancy.

Re: tagging files: one rules works, one not

PostPosted: Sun Aug 25, 2013 12:21 am
by Vlad Ghitulescu
Hello!


Thanks for the reply!

Ok, I understand.

I have solved the problem by making a similar set of rules (1.- run rules on subfolders & 2.- tag with 2013 every file that have 2013 in the name) for the folder containing the folder "Rechnungen".

Thanks again!


Regards,
Vlad