• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is it possible to read your own quarantine info after launch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Is it possible to read your own quarantine info after launch?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: [BUG] Documents (sandboxed too) won't open from iCloud Drive
  • Next by Date: [PSA] Non-layer backed views + scrolling + visual artifacts
  • Previous by thread: Thank You
  • Next by thread: Re: Is it possible to read your own quarantine info after launch?
  • Index(es):
    • Date
    • Thread