I am constantly downloading files from our servers and they get marked with the com.apple.quarantine attribute.

How can I forever (and ever, until the universe collapses) prevent the OS from setting this attribute?

It looks like on Catalina the 'defaults write com.apple.LaunchServices LSQuarantine -bool NO' solution doesn't work.


As a workaround, I'd create a Automator Folder Action, attached to the Downloads folder, with a Run AppleScript action, setting Shell: /bin/bash and Pass input: as arguments, using the example bash code below, until a more permanent answer comes about.

for f in "$@"
    [ ! -d "${f}.download" ] || continue
    xattr -d com.apple.quarantine "$f"

enter image description here

Note: The example bash code contains limited error handling. The onus is upon the user to add any error handling as may be appropriate, needed or wanted.

You must log in to answer this question.

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