Re: .webloc files and Safari (newbie)
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.