Is it possible to read your own quarantine info after launch?
Is it possible to read your own quarantine info after launch?
- Subject: Is it possible to read your own quarantine info after launch?
- From: Ben Staveley-Taylor <email@hidden>
- Date: Fri, 28 Nov 2014 16:14:34 +0000
I want to determine from which server my application was downloaded, on its first use. (The app is hosted on many servers and I want to work out which one to connect back to.)
The Mac OS adds quarantine info to downloaded files. This is handled by Launch Services, so I can use LSCopyItemAttribute with kLSItemQuarantineProperties and look at the kLSQuarantineOriginURLKey value. However, the quarantine info is erased once the user has authorised the first use of the download. So I can read another file’s quarantine, but by the time my own app has launched, Launch Services has un-quarantined it and the info is gone.
Is there a way to access the quarantine info after launch? Or is there another way to determine where the downloaded app came from?
Thanks.
— Ben.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden