Page 1 of 1
Move Images based off url

Posted:
Tue Feb 16, 2010 2:09 pm
by withoutink
Hi, I download a ton of stock photos both free and paid for stuff. I try to sort them based off the site I download them from. Is there an easy way to segregate them at the time of download with Hazel. So, if I download this image:
http://www.istockphoto.com/stock-photo- ... elnuts.phpIt would automatically end up in my: Stock Photos / iStockPhotos folder?
Im pretty new at Hazel, as I just bought it on Friday. As of yet I cant get the URL matching to work with these stock photo sites...
Re: Move Images based off url

Posted:
Tue Feb 16, 2010 4:13 pm
by Mr_Noodle
You should be able to use the "Source URL/Address" for this. You can filter by domain or even by text that may appear in the URL (like the file path). If you are still having trouble, post back.
Re: Move Images based off url

Posted:
Wed Feb 17, 2010 7:30 am
by withoutink
Ok, i tried again, maybe I am missing something... Here is what my filter looks like:

Re: Move Images based off url

Posted:
Wed Feb 17, 2010 11:04 am
by Mr_Noodle
That looks like it should work. What kind of behavior are you seeing? You could also try using "is from domain" instead of "contains".
Re: Move Images based off url

Posted:
Wed Feb 17, 2010 3:49 pm
by withoutink
Ok, I attempted to "is from" as well, this time on my work mac. It doesn't work either. When I run the rule, nothing happens at all.
Re: Move Images based off url

Posted:
Fri Feb 19, 2010 5:26 pm
by Mr_Noodle
Are you certain that Spotlight is enabled, that the file in question is not under a folder marked as "private" in Spotlight preferences" and that the file in question actually has metadata set? You can use the 'mdls' commandline program to check. Let me know if you need more help on how to do this.
Re: Move Images based off url

Posted:
Fri Feb 19, 2010 6:18 pm
by withoutink
Thanks for the reply...
Spotlight is on
To verify mdls I downloaded this comp from istock:
http://www.istockphoto.com/file_thumbvi ... sunset.jpgHere is a screenshot of the mdls metadata output:

Re: Move Images based off url

Posted:
Tue Feb 23, 2010 8:34 pm
by Mr_Noodle
Is that the whole output? It seems to be missing the following:
- Code: Select all
kMDItemWhereFroms = (
"http://www.istockphoto.com/file_thumbview_approve/3732362/2/istockphoto_3732362-great-wall-at-sunset.jpg"
)
Might have gotten stripped if the file was copied or re-saved at some point.
Re: Move Images based off url

Posted:
Tue Feb 23, 2010 10:43 pm
by withoutink
Yes, that was everything. Is there a setting in OSX to enable that field? I just saved the image (right click, save image as) via Firefox.
Re: Move Images based off url

Posted:
Wed Feb 24, 2010 1:43 pm
by Mr_Noodle
I believe only Safari and Mail set it.
Re: Move Images based off url

Posted:
Wed Feb 24, 2010 1:44 pm
by withoutink
Thanks for that. I didn't know that =) Ill try it in Safari.
Re: Move Images based off url

Posted:
Wed Feb 24, 2010 2:07 pm
by withoutink
Wow, that was it. Thanks so much, now I just need to figure a way have FireFox write the data... There has to be a way, ill start searching google.
Thanks again for all the support!
Re: Move Images based off url

Posted:
Wed Feb 24, 2010 5:33 pm
by sjk
withoutink wrote:There has to be a way
I don't use Firefox but was curious enough to look for possible solutions and could only find:
•
Add ‘Where from:’ to Firefox downloads (Mac OS X)•
met.a