Hacker News new | ask | show | jobs
by dunham 5118 days ago
FYI, if you want to recover the origin of those ~/box pictures, they may have the original URL and referring URL stored in their metadata. Anything saved from a web browser should have this information in it.

You can use "mdls" to see it. I put a quick and dirty python library to get and set these values at: https://gist.github.com/2889617 (I use it to backup this data.)

This field can also help you find the source of those random pdf files lying around your disk. And you can query it with spotlight. For example,

    mdfind "(kMDItemWhereFroms = '*ycombinator.com*')"
will find all of those pdf's you saved from ycombinator.
1 comments

I really wish Windows would store this info in NTFS alternate streams. I'll have to check my files when I get home