I'm making a desktop application which will open files (of the LHTML format) and which can save files (of whatever format) to a user's computer. In other words, a user might:
- Download
something.lhtml
from an email they receive - Open
something.lhtml
- Be prompted to save
stuff.ppt
by this application (where the contents ofstuff.ppt
are determined bysomething.lhtml
) - Double click
stuff.ppt
When the user opens stuff.ppt
, I want them to be prompted before opening the file as if they had downloaded stuff.ppt
from an email. So... if I copy something.lhtml
's current com.apple.quarantine
extended attribute to stuff.ppt
, is that guaranteed to force a prompt when stuff.ppt
is opened?
And if the file being saved isn't a .ppt
but is one of these, is copying the com.apple.quarantine
value still sufficient?
.exe
.pdf
.dmg
.app
Does this question even make sense? :)