Hi there - I love Hazel and if I can figure out this one thing, I will be pleased as punch. Any help is greatly appreciated.
I use bittorrent a lot. Transmission downloads everything to my downloads folder, where Hazel promptly sorts everything out. For music files, the existing workflow is as follows:
Downloads Folder Rule:
1 - Copy all music files to my local Music folder
Local Music Folder Rules:
1 - Sort music files in subfolders, with the following structure: Authors/Albums/file.mp3
2 - Set color label for the top directory ("Authors," aka artists) to Red
3 - Move folders labeled Red to the Music folder on the NAS drive I have on my network
(I leave the originally downloaded files in my Downloads folder for seeding purposes.)
Now, the problem is that when I download an album from an artist I already have in my collection, it results in duplicate folders in my networked Music folder. For instance, if I already have Album 1 from Artist A on my hard drive, but then I download Album 2 from Artist A, when Hazel goes to move the folder to my hard drive, this is the result:
../Artist A/Album 1
../Artist A-1/Album 2
What I would like to happen is that if the Artist A folder exists in the destination directory, then only the Album folder is copied to that existing Artist A folder. And if the artist folder does not exist, then it is created.
Does that make sense? I'm not sure how well I'm articulating this. I'm guessing a simple script could handle this issue, but I'm not exactly sure where/how to start. Like I said, any help is greatly appreciated! TIA!