Page 1 of 1

Rule to a .txt not working

PostPosted: Thu May 15, 2014 2:19 am
by Allsop
I have set up a rule to add the current date to the name of anything that lands on my desktop which works very well except for Apple Text documents, these have the extension .txt. Initially I have even added to the rule the specific criteria to date anything with the extension txt and it still does not work. Any ideas where I am going wrong? Thanks.
Andrew

Re: Rule to a .txt not working

PostPosted: Fri May 16, 2014 12:07 pm
by Mr_Noodle
I suggest going through the troubleshooting guide stickied near the top of this forum. If you can't figure it out, report back with the diagnostics from there.

Re: Rule to a .txt not working

PostPosted: Sat May 17, 2014 1:31 am
by Allsop
Thanks for your reply, I should have checked before posting! With regard to the points in the sticky:
“Remember that rules are processed in order.
Remember that Hazel only applies the first rule that matches (this is different than how rules work in Mail).“

I have 2 rules in this order:
1) Date a document with the criteria
If all of the following conditions are met,
Kind, is not, Folder
Kind, is not, Alias
Kind, is not, Disk image

Do the following…:
Rename with pattern: date created; name; extension

2) Move old stuff with the criteria
If all of the following conditions are met,
Date added, is not, Today
Kind, is not, Folder
Kind, is not, Alias

Do the following…:
Move, to folder, Stuff to sort

Now according to the sticky my second rule will not work because “Hazel only applies the first rule that “matches”

How, then, can I combine the rules so that I can get the result I require in the second rule?

Many thanks for any help.

Re: Rule to a .txt not working

PostPosted: Mon May 19, 2014 2:53 pm
by Mr_Noodle
You can do something like set a color in the first rule and then look for that color in the second. Or combine the rules though you'll have to have separate rules for the different possible combinations.

Re: Rule to a .txt not working

PostPosted: Tue May 20, 2014 12:42 am
by Allsop
“Set a colour”—Clever! :)

Thanks.