• 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
Re: .webloc files and Safari (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .webloc files and Safari (newbie)


  • Subject: Re: .webloc files and Safari (newbie)
  • From: Gregory Weston <email@hidden>
  • Date: Mon, 8 Dec 2003 08:26:41 -0500

On Dec 8, 2003, at 1:00, email@hidden wrote:

On Sunday, December 7, 2003 at 11:20 PM, jay wrote:

Working on a simple droplet as an excersize and I want it to be able to
accept drags from Safari. I assumed that the .webloc files you get when
you drag a url from Safari to the Finder would contain a string of the
url. But they're 0 byte files. How exactly do these work?

Are you looking in the resource fork or the data fork? I think Webloc
files store there info in the resource fork.

No, the contents are in the data fork (as would make sense, given that Apple is to all appearances trying to deprecate the resource fork). They're also much more than just the URL, though. I just grabbed one and the first 256 bytes are almost all zeroes. Then there's 56 more bytes of mostly inobvious information. Then the URL, a couple extra bytes, the URL again and several more mostly-unreadable bytes. You know what it looks like? An alias record, IIRC.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: .webloc files and Safari (newbie)
      • From: Jérome Foucher <email@hidden>
  • Prev by Date: Re: OT: Seed installation strategy
  • Next by Date: NSNumber subclassing oddity
  • Previous by thread: Re: .webloc files and Safari (newbie)
  • Next by thread: Re: .webloc files and Safari (newbie)
  • Index(es):
    • Date
    • Thread