Archive for March 6th, 2009

Mac OS X command-line of the day

Friday, March 6th, 2009

sudo xattr -d com.apple.quarantine *

This removes the “This file was downloaded, are you sure…” warning when dealing with downloaded files.

There are attributes other than com.apple.quarantine, such as:

  • com.apple.ResourceFork
  • com.apple.FinderInfo
  • com.apple.diskimages.recentcksum
  • com.apple.metadata:kMDItemWhereFroms
  • com.macromates.caret

I like that last one.
I guess it’s how TextMate
remembers its position in a text file.

If you want to see what extended attributes your files have, you can either use “xattr -l filename” or just “ls -l@“.