Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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 com.apple.LaunchServices 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
1  
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? –  Lri Sep 28 '11 at 21:57

2 Answers 2

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 com.apple.quarantine ./*

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
2  
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 "$@"
do
    xattr -d com.apple.quarantine "$f"
done

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

share|improve this answer

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.