Page 1 of 1

Touble w/ a rule to move music from specific URL

PostPosted: Tue Nov 06, 2012 5:35 pm
by mattone
Hi.

I'm having trouble with a rule I created to instruct Hazel to move music files downloaded from a domain into a folder I created as the target of this rule. When I download a new mp3 each day, the file is not getting moved to the target folder.

Here's my rule:
All conditions; for the file of folder being matched:
- Kind is Music
- Source URL/Address is [http://54.241.0.21/30days/]

Do the following:
- Move to folder: [target folder]

Options:
- Throw away if duplicate
- if file exists rename

Do I need to be using a nested rule for the URL since Hazel matches the first rule and doesn't process further rules (or did I misunderstand the FAQ)?

Thank you,
Matt

Re: Touble w/ a rule to move music from specific URL

PostPosted: Wed Nov 07, 2012 11:30 am
by a_freyer
You should check the MP3's data in the preview window to be sure that the source URL is in fact an exact match to what you have entered. It is quit possible that extra slashes or paths are present.

I would change the condition to a "contains" instead of "is" and remove the prefixes. Perhaps include just the server IP address.

Re: Touble w/ a rule to move music from specific URL

PostPosted: Wed Nov 07, 2012 4:18 pm
by mattone
I tried what you suggested and it didn't work. when I selected the mp3 downloaded today, it does not have the URL info in the Get Info box like the the other one did. Perhaps that metadata isn't always transmitted.

Puzzled.

I wish there was a way to move one of those mp3s previously downloaded back into the folder to see if a new Hazel setting would make it work. It appears that Hazel keeps track of each file it affects so using the same file wouldn't work.

Re: Touble w/ a rule to move music from specific URL

PostPosted: Wed Nov 07, 2012 4:28 pm
by a_freyer
mattone wrote:I wish there was a way to move one of those mp3s previously downloaded back into the folder to see if a new Hazel setting would make it work. It appears that Hazel keeps track of each file it affects so using the same file wouldn't work.


I do not understand your hang up on this point... Just move the files back yourself and test.

Re: Touble w/ a rule to move music from specific URL

PostPosted: Wed Nov 07, 2012 5:46 pm
by Mr_Noodle
What program are you using to download? Note that only certain programs set that metadata (Safari and Mail). If you used a different program, that field won't be there.

Re: Touble w/ a rule to move music from specific URL

PostPosted: Fri Nov 09, 2012 5:29 pm
by mattone
a_freyer wrote:
mattone wrote:I wish there was a way to move one of those mp3s previously downloaded back into the folder to see if a new Hazel setting would make it work. It appears that Hazel keeps track of each file it affects so using the same file wouldn't work.


I do not understand your hang up on this point... Just move the files back yourself and test.


I read somewhere in the Hazel docs that once Hazel processes a file it won't reprocess it. Apparently I misunderstood what that means. I changed my URL rule to look at the IP, moved one of the mp3's back into Downloads and it worked! Now it works fine—at least by dropping mp3's into Downloads.

Thanks.

Matt

Re: Touble w/ a rule to move music from specific URL

PostPosted: Fri Nov 09, 2012 5:46 pm
by a_freyer
Ah ha! Yes, I can understand how the docs might be confusing on that point. However for clarity sake I'll explain what you ran into in the docs. Hazel will not the same rule twice on a file if the file itself has not changed or moved and the rule applies to that file (as opposed to copying the file somewhere else). This is to prevent looping infinitely if a file is matched over and over again. If, however, you move the file or rename it or add a color label, or change it in any way Hazel will one again look at the file to see if it matches a rule.

That is why moving files and folders is a great way to test hazel.

Does that clarify what you came accross in the docs?