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

I downloaded a php framework and has started to make a website using that. Sometimes I need to look at the source of that framework and every time I open a file I haven't opened before I get this message:

“somefile.php” is a script application which was downloaded from the Internet. Are you sure you want to open it?

That is ok and nice I suppose, but I am getting tired of it. Is there a way I can fix all the files in my web directory so that the os somehow forgets the files are from the Internet or something like that?

share|improve this question
up vote 3 down vote accepted

Take a look at this discussion about Mac OS X extended file attributes. OS X puts a com.apple.quarantine attribute on downloaded files.

You can use find and xattr to clear that.

share|improve this answer
1  
That seems to have been it. Used find . -exec xattr -d com.apple.quarantine {} \; in my web folder to unset it on all files. Think it worked :p – Svish Apr 20 '10 at 16:56

You must log in to answer this question.

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