Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 6 down vote accepted

To fully clean the file, you need to remove the two extended attributes that are used to mark it as a quarantined download, and track where it came from:

xattr -d file-to-clean
xattr -d file-to-clean

To save typing and/or typos, you may want to wrap this in a simple shell script...

share|improve this answer
Ding. The xattr command reporting back there was no meta-data on the file, but removing alone did the trick. – Alan Storm Nov 9 '09 at 9:02
Sounds like you're cleaning the extracted contents, not the originally downloaded file. Both xattrs get attached to downloaded files, but is the only one that gets copied to the contents when they're extracted. – Gordon Davisson Nov 9 '09 at 16:45
I've also found that single downloaded file has only set. xattr file-to-clean lists all the attributes. – Ben Butler-Cole Jan 6 '14 at 17:19

Remove the verified download plugin located in your /Library/Internet Plug-Ins folder.

I use FlashGot + Speed Download in Firefox and haven't had to deal with those warnings.

share|improve this answer
Useful info, but I like the behavior for executable files, so that's a no go. – Alan Storm Nov 9 '09 at 7:34
I don't actually have such a plugin in my /Library/Internet Plug-Ins, and yet I get those warnings… what may be it? (No, it isn't in my ~/Library/Internet Plug-Ins either.) – ShreevatsaR Mar 22 '11 at 14:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .