Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.