Help adding date to end of files and fixing hazel misnames

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

Moderator: Mr_Noodle

I want to add 'date created' to the end of all files in some folder recursively. I have my 'recurse into subfolders' rule in the folder where I will work on :

Image

Now I want to make a rule that will add the date created in brackets to all my files :

Image

The (2015) and (2016) checks are there because before I wanted to rename it to just the year, now I want the whole date. Well I think I made a big mistake on using this rule on my main folder with 1000's of files.

Now firstly, not only it gives a wrong date for some reason :

Image

How can there be 20/20 if months go up to 12..

Here is the rule I use for dates :

Image

The other problem is that I have a lot of these messed up files now that have year suffixed twice to them for some reason :

Image

(2015)(2015).. I have no idea why :(

I tried to reverse it with this rule :

Image

Image

Please help me make sense of this and fix this. I would really love to have a fully working automated hazel system that will prefix my files with rules, lowercase everything, hide extensions and not make any mess ups in my file system.

Thank you for any help.
nikivi
 
Posts: 39
Joined: Tue Mar 08, 2016 10:04 am

Just noticed the mistake with the 31/31 date. I accidentally put something else in there, I corrected it now, now I have two date brackets everywhere and the stuff with double brackets is still there. I guess I have to manually clean everything back and try to run the rule again and hope it works. :(

Although I really don't get why my remove (2016) and (2016) rules don't work at all. Is there a way I can match the two bracketed dates as well somehow to automatically clean everything?

I am really sad now seeing this happen. Would really appreciate if anyone can help me understand why these rules don't work and how I can reverse the damage I made.
nikivi
 
Posts: 39
Joined: Tue Mar 08, 2016 10:04 am

I figured out how to remove (2015) and (2016) years. Thank god. :D

Can I somehow remove the two () () dates as well?

Image

Since they are dynamic and are different, I cannot find and replace for a name. Can I somehow say that if bracket is encountered in a name, remove the bracket and everything after the bracket? This would fix this.
nikivi
 
Posts: 39
Joined: Tue Mar 08, 2016 10:04 am

I have removed all the dates between the brackets but now I have some files that have a space in before an extension or at the end of the files.

Like so :

'some-file-name .pdf'

There is a space before .pdf. There are also files like these :

'file-name '

Is there a rule I can make that will hide all these ending spaces and will hide all extensions recursively?

Thank you a lot for any help on this. I really hope I can get my system working, I really don't get why the rules I have made that should apply to all the folders and prefix them, only applied rules to some of them. It doesn't seem to be very consistent.

One I get the spacing issue fixed, have all extensions be hidden for all files recursively and correctly, I can apply my prefix rule and my add date in brackets and everything should be perfect. I can then apply these rules to my other folders.

This tool is seriously awesome,I just need to understand why it doesn't work all the time and why the rules that should work, do not, like for example my lowercase files rule.
nikivi
 
Posts: 39
Joined: Tue Mar 08, 2016 10:04 am

Try using "Name matches". Have a pattern which has a custom attribute match everything but the space at the end and rename using that.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support