Ask Different is a question and answer site for power users of Apple hardware and software. 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've been tearing my hair out trying to get rid of the quarantine "Do you want to open this?" warning because I don't like it.

The well documented way (defaults write LSQuarantine -bool NO) does NOT work.

Also, I've used the Secrets Preference pane and that doesn't work either. As soon as I uncheck the box and close the pane and reopen, it's still checked.

(I've tried rebooting right after these methods, no dice.)

share|improve this question
LSQuarantine -bool false does work for me. And it was accepted as an answer to: How can I disable Mac OS Lion asking if I really want to open a downloaded file? – user495470 Sep 28 '11 at 21:57

Never tried to disable the behavior entirely, but you can always remove the quarantine from a file with xattr. For example:

$ cd ~/Downloads
$ xattr -dr ./*

I think of it less as a moron check than it is a safeguard from browser vulnerabilities that might otherwise download and something without your knowledge.

share|improve this answer
To do this systematically, you could have Safari download to an obscure/alternate folder and set up folder actions using Automator to systematically strip the quarantine from all files and then move the file back into downloads at the end of the folder action. – bmike Sep 3 '11 at 17:33
Why even bother with an alternate folder--can't you just set the folder action up on Downloads? You'd have to adjust the script a tad to only work on the file in question, but I think it'd be possible. – NReilingh Sep 3 '11 at 17:44
I think you have to get the file out of the action folder or else it loops continually. – bmike Sep 3 '11 at 18:25

Here's a simple Automator folder action that will remove the quarantine flag from files as they are downloaded to the Downloads folder:

  1. Make a new Folder Action workflow in Automator
  2. In the "Choose folder" menu, choose your Downloads folder
  3. Add a "Run Shell Script" command
  4. Change the "Pass input" menu to "as arguments"
  5. Change the script to:

for f in "$@"
    xattr -d "$f"

Finally, save the workflow with whatever name you want and it should start working immediately.

share|improve this answer

Your Answer


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.