7
1
Whenever you download an HTML file from the internet (say, in a zip archive), the first time you open the file in OS X you get a warning something like "this file was downloaded from the internet and may do horrible things to your mother, are you sure you want to open it"? Once you click OK, you can open that file again without further harassment.
Is there anyway to quickly mark a group of these files as safe so the warning doesn't show up the first time you open them?
My specific use case is I've downloaded a large number of HTML files that I'm searching through, and then using the "open" command to open. If I try to open five files at once I get five warning dialogs, which is tedious and irritating.
1Ding. The xattr command reporting back there was no com.apple.metadata:kMDItemWhereFrom meta-data on the file, but removing com.apple.quarantine alone did the trick. – Alan Storm – 2009-11-09T09:02:07.940
Sounds like you're cleaning the extracted contents, not the originally downloaded file. Both xattrs get attached to downloaded files, but com.apple.quarantine is the only one that gets copied to the contents when they're extracted. – Gordon Davisson – 2009-11-09T16:45:38.697
I've also found that single downloaded file has only com.apple.quarantine set.
xattr file-to-clean
lists all the attributes. – Ben Butler-Cole – 2014-01-06T17:19:40.873