Source URL-based Rule won't fire

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

Moderator: Mr_Noodle

Source URL-based Rule won't fire Sat Jan 17, 2015 5:10 pm • by dbutler77
I really didn't want to do this... usually can figure this stuff out but after nearly 3 hours decided to look for a user guide or ask for help. Didn't find any guide other than this forum, which doesn't address my basic use question.

Screenshot of my rule: http://screenshot.net/gelq1f3

Running Hazel in OS X 10.10. It is working if I take the rule and remove the Source URL condition, replacing it with ALL files in the folder.

I have tried a bunch of things... different URLs, full URL, Different folders, including Downloads and one on my Desktop.
I have tried downloads from Safari and Chrome... Interestingly the same file downloaded from Chrome to the Desktop folder has the URL in the More Info metadata field, but when loaded to Downloads it does not. I tried applying this rule to the noodlesoft dmg file for hazel that was in Downloads, and it didn't work.

I'm missing something, but need to get on with life. Can you help me resolve this?
Is there other online help besides this forum?
dbutler77
 
Posts: 1
Joined: Sat Jan 17, 2015 4:51 pm

Re: Source URL-based Rule won't fire Mon Jan 19, 2015 3:04 pm • by Mr_Noodle
If you do "Get Info" on the file in Finder, you want to check the "Where froms" field which is what Hazel uses. Unfortunately, things have gotten worse in terms of programs filling this out. Safari used to do it consistently but now there are cases where it doesn't. As for Chrome, I'm not even sure what is going on there. You need to find which method works consistently and then write your rules to cater to that.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Source URL-based Rule won't fire Wed Jan 21, 2015 8:09 pm • by Smudge
To make it even more complicated, the "Where froms" field can also be set by the website. It isn't always up to the browser.

For example, I saved the logo image from google.com and the WhereFroms was set to a binary plist containing the URL of the image. I then saved the Hazel rule image that you posted on screenshot.net and instead of the URL, it was a base64 encoded string of the image itself :? :cry:

Since you can't trust the WhereFroms to contain the URL, you will have to do something else like create a folder in your Downloads folder only for your usaa.com files. Set Hazel to just process any file that is saved into that folder with your rules. When you download a file from usaa.com that you want put into Evernote, just save it into this subfolder instead of the main Downloads folder.
Smudge
 
Posts: 34
Joined: Mon Jul 15, 2013 10:44 pm

Re: Source URL-based Rule won't fire Thu Jan 22, 2015 3:31 pm • by Mr_Noodle
I'm not sure if the website has that kind of power. What browser did you use to get that? Just testing it now in safari, I get the URL.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Source URL-based Rule won't fire Thu Jan 22, 2015 6:49 pm • by Smudge
I tried it with Chrome and Safari.
and just to make sure I wasn't doing something wrong, that is when I saved the google.com logo file and saw the URL.

Either way, as you said, one can't trust that metadata field to be correct. OP would be better off changing his routine and Hazel rules to something more reliable.
Smudge
 
Posts: 34
Joined: Mon Jul 15, 2013 10:44 pm


Return to Support