Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: See where Safari downloads originated' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: See where Safari downloads originated
Authored by: SteveJ098 on Jan 09, '10 09:22:19PM

This loop will process multiple files, print the URL's to the tty and save to the pastebuffer
(Quoting of $@ and $f is very important):

#!/bin/sh

for f in "$@"
do
mdls -name kMDItemWhereFroms "$f"|cut -s -f2 -d\"
done |\
tee /dev/tty|\
pbcopy



[ Reply to This | # ]