• 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: Rainer Brockerhoff <email@hidden>
  • Date: Mon, 8 Dec 2003 08:53:40 -0200

>Date: Sun, 07 Dec 2003 20:20:09 -0800
>From: jay <email@hidden>
>
>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?

They're not 0-byte files - although the data fork is empty. Looking at Mac files in Terminal is always deceptive; use the Finder for that.

All the data are in the resource fork. Just open one in Resorcerer (or ResEdit in Classic) and you'll see how they work - the URL is in a TEXT resource, if I recall correctly.

--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
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.

  • Prev by Date: Re: directoryContentsAtPath freezing computer
  • Next by Date: Re: OT: Seed installation strategy
  • Previous by thread: .webloc files and Safari (newbie)
  • Next by thread: Re: .webloc files and Safari (newbie)
  • Index(es):
    • Date
    • Thread