|
|
10.5: Remove the 'downloaded file' warning flag
Ok, one more way to accomplish this same thing... in terminal only (by the way, I compiled the c code above and it works like charm (10.5.5). but you need Xcode etc. It's very fast) The apple script in this hint uses the xattr program which comes with Leopard. But it doesn't support folder recursion (and doesn't have a man page). To apply xattr to all files in a a folder tree, use xargs
(replace folder path with your folder, e.g. ~/downloads) Since xattr doesn't have a man page, here's the output from xattr -h Thanks very much to the original poster for figuring out this command in the first place.
10.5: Remove the 'downloaded file' warning flag
If you want to change this on the command line as suggested above, you need to escape the spaces in filenames using the "-print0" in find and the "-0" in xargs, e.g.,
find folderpath -print0 | xargs -0 xattr -d com.apple.quarantine
in fact, I plan to use this frequently (I find it particularly annoying the ACL is inherited into all the files in an archive you have downloaded), so I have an alias in my .cshrc (which I prefer to a Folder Action because I have control over when to use it):
alias noquar 'find !$ -print0 | xargs -0 sudo xattr -d com.apple.quarantine'
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|