I have an app, MyApp, which is distributed via the Mac App Store.
Via a browser bookmarklet the user can tell me to snarf up the contents of the currently viewed webpage. The URL for the webpage is sent to MyApp via a custom URL protocol. MyApp then generates a webarchive for the file using a hidden WebView and then save it to disk.
The problem is the user can't launch/open the webarchive file. Gatekeeper reports that "can’t be opened because it is from an unidentified developer. Your security preferences allow installation of only apps from the Mac App Store and identified developers. MyApp created this file today at 9:06 AM."
But MyApp is from the Mac App Store. And other files my app creates work just fine. I think it's just because the webarchive was downloaded using WebKit.
I can use "xattr -l" and see that the quanantine bit is set.
Techniques like setResourceValue:[NSNull null] forKey:NSURLQuarantinePropertiesKey don't work.
I've tried setting LSFileQuarantineEnabled to false in my Info.plist but, in private builds here, that doesn't seem to work. If I submit this to the MAS for approval will that do the trick (I kind of doubt it)?
What's the right way to do this?