1

I was looking for a way to flag some files after downloading so gatekeeper would inspect them. Web browsers also quarantine downloaded files for gatekeeper.

I know that there is an extended attribute set on files "com.apple.quarantine", but setting this attribute on my files is not helping. I was wondering what is the right way to do this?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Abcd Efg
  • 2,146
  • 23
  • 41
  • hi. so ... how did you set the attribute and where? on what file(s) – Daij-Djan Feb 26 '14 at 13:57
  • Hi, I used setxattr() after the file was downloaded using NSURLConnection. I tried it on some of the files that were already flagged for gatekeeper. Information on setxattr: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/setxattr.2.html – Abcd Efg Feb 26 '14 at 14:47

0 Answers0