Re: Is it possible to read your own quarantine info after launch?

2014-11-29 Thread Ben Staveley-Taylor
Thanks, Ken. Certainly the test code that I wrote failed to get the kLSQuarantineOriginURLKey value and I assumed that was because the quarantine info had been cleared, but maybe it was a different cause. Anyway, you’re right, even if it works it is too fragile. I can’t arrange for each server t

Re: Is it possible to read your own quarantine info after launch?

2014-11-28 Thread Jerry Krinock
Regarding the problem you are trying to solve, which is to determine where an app was downloaded from, Freshcode released a little framework which did this a few years ago. You might want to contact them, http://madefresh.ca, and ask about their "Breadcrumb” framework. ___

Re: Is it possible to read your own quarantine info after launch?

2014-11-28 Thread Ken Thomases
On Nov 28, 2014, at 10:14 AM, Ben Staveley-Taylor wrote: > 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.) This seems like an _extremely_ fragile approach. Perh

Is it possible to read your own quarantine info after launch?

2014-11-28 Thread Ben Staveley-Taylor
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 LSCopyItemAttribu