4 ms·
On macOS: mdls FILENAME `kMDItemWhereFroms` is what you are looking for. And for a list of all the URLs from the current directory: mdls * | grep kMD
by aboutruby 8y ago
On macOS:
mdls FILENAME
`kMDItemWhereFroms` is what you are looking for. And for a list of all the URLs from the current directory:
mdls * | grep kMDItemWhereFroms -A 1 | grep http | ruby -ne "puts \$_.strip[1..-2]"