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

To download torrents, I have changed from running Transmission on my Mac to running it on a NAS. As a next step, I want the Mac to automatically start the torrent download on the NAS by moving the .torrent file to the "watch folder" on the NAS.

I have created the Automator script below to move the file and it works well. I have associated .torrent files with this script and my browser (Chrome) opens these automatically.

Automator script

The problem I now have is that the Mac File Quarantine is triggered when the .torrent file is opened. I get the message:

".torrent" may be an application. It was downloaded from the Internet and will be opened by TorrentOnDiskstation. Are you sure you want to open it?

When I have Transmission installed on my Mac, it opens .torrent files without a warning message, so it must have some way of telling the OS that .torrent files are ok.

How can I get the same behavior with my Automator script?

I've found answers that show how to completely disable the File Quarantine feature (at least for pre-Lion Mac OS), but this seems overkill. I've also seen "hacks" that will trigger the xattr function when a file is created, but this doesn't seem elegant. Can anyone come up with a clean and self-contained solution?

share|improve this question

From the Terminal.

defaults write LSQuarantine -bool NO

This will turn off the warning permanently, or until you change it back with the following command.

defaults write LSQuarantine -bool YES

You may need to restart for changes to take effect. Info from MacWorld.

share|improve this answer
on a per-file-basis would be nice, though. This is system-wide, right? – Thilo Feb 21 '12 at 3:37
Yes, this is system-wide. For a per file or I think per folder solution try xattr -d -r /path/to/folder_or_file. – afragen Feb 21 '12 at 3:45

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.