2

I have an app that downloads ZIP files from my server, and can download plugins from other servers. Before being able to open these files, I would like to present one of the classic '"Filename.html" is a (file type) downloaded from the internet. Are you sure you want to open it?" messages when first attempting to open the file, much like Google Chrome does when you save a HTML file and attempt to open it: enter image description here

I've read that this is enabled by setting a special file attribute, but I'm not entirely sure what attribute it is, and how to set it on these files.

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
Tristan
  • 3,058
  • 6
  • 40
  • 68

1 Answers1

2

File Quarantine is documented here

ergosys
  • 47,835
  • 5
  • 49
  • 70
  • Thanks, that is indeed what I was looking for. Strangely, I just could not find this on the internet. Weird. – Tristan Apr 03 '11 at 07:14
  • The original unlabeled link is broken. It was pointing at "Launch Services" (which is currently at https://developer.apple.com/library/mac/documentation/Carbon/Reference/LaunchServicesReference). Right now, however, I can't find an answer to the OP's question there since much of the API is deprecated and, in typical Apple fashion, there's no information on what should be used instead. – Perry Jul 20 '16 at 17:38