random technical thoughts from the Nominet technical team

Quarantined downloads and extended attributes under Mac OS X

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
Posted by chris on Mar 13th, 2008

If you’ve got Leopard, you may have noticed that it tags files that you download and then warns you that you are opening a downloaded file. This annoys some people, but I think it is quite a nice touch for the average user. As a power user, you might want to remove this tag from the file manually (read: using the command line). To do this you need to use the xattr command as explained nicely by Henrik. It seems like the tag is stored in special extended attributes on the file which show up in detail if you issue the ls command with the -@ flag. To remove them you just do

xattr -d com.apple.quarantine <downloaded_file>

Strangely this command has no man page, but will give usage if you pass it a -h flag.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Recent Posts

Highest Rated

Categories

Archives

Meta: