Home » Questions » Computers [ Ask a new question ]

Is there a way to untaint html documents downloaded from the Internet

Is there a way to untaint html documents downloaded from the Internet

Whenever you download an HTML file from the internet (say, in a zip archive), the first time you open the file in OS X you get a warning something like "this file was downloaded from the internet and may do horrible things to your mother, are you sure you want to open it"? Once you click OK, you can open that file again without further harassment.

Asked by: Guest | Views: 304
Total answers/comments: 1
Guest [Entry]

"To fully clean the file, you need to remove the two extended attributes that are used to mark it as a quarantined download, and track where it came from:

xattr -d com.apple.quarantine file-to-clean
xattr -d com.apple.metadata:kMDItemWhereFroms file-to-clean

To save typing and/or typos, you may want to wrap this in a simple shell script..."