I am trying to have Hazel automatically rename folders that has dots "." between the words as spaces " ". Example: "Brothers.&.sisters" should become "Brothers & sisters"
Ideally, it would be best to have 2 folders (A, B) that swap folder "X" between them. if dots are found then folder "X" is sent to [Folder B] that would do the renaming, and send it back to [Folder A] to do the rechecking and so on. If [Folder A] cannot find any dots then it would send it to the final destination folder. I used the rules "Name Matches" and had the first word "Blah1", and the second "blah2" set as "Anything" so it would capture whatever the words are. The Renaming was set to [Blah1 Blah2]
While this worked perfectly well when there is only 1 dot "Greys.Anatomy" turning into "Greys Anatomy", whenever there is a show that has more than one dot that needs to be turned into spaces, everything beyond the second word gets lost. For example, "Brothers.And.Sisters" would turn out to be "Brothers And". I assumed that "anything" rule doesn't count spaces as an allowable character so I tried another method.
The other way i tried is this. I had [Folder A] run a set of rules on the incoming folder to check the number of words in it and then run a set of rules depending on the number of words between the dots. For example, [blah1.blah2.blah3.blah4] should be treated as a 4 worded folder and should be renamed as [blah1 blah2 blah3 blah4] . I still got the same result as the other way above.
Here are the exported files for the two rule sets I did
http://www.zshare.net/download/7008397696fc0d00/
Could you please let me know how to do that with Hazel
