Re: webloc files
Re: webloc files
- Subject: Re: webloc files
- From: Jonathan Wight <email@hidden>
- Date: Sat, 4 Aug 2007 10:56:50 -0400
On Aug 4, 2007, at 10:36, Aaron Wallis wrote:
Hi all,
I've been browsing around for what seems like forever, looking for
an example of how to extract the URL from a webloc file!?
Its saved as a resource fork, and whilst i've been able to load it
into a NSData object, i'm not really sure what to do with it now? I
can't seem to convert the NSData object to a string, or anything
like that...
Any one got any ideas?
Aaron
There are actually two kinds of webloc (or rather generic urlloc)
files out there.
The old style stores the URL in a 'URL ' resource within the resource
fork. The new style are just plist files. In 10.4 Safari would still
create the old style if you dragged the URL from the address field.
Apps like BBEdit would create new style if you dragged text that
happened to be a URL from the main text view.
I have written a Spotlight importer that imports webloc files (and
other clippings):
The code you want for processing the file is here, in my public SVN
repository:
http://toxic-public.googlecode.com/svn/trunk/Spotlight/Spotlight Importer Collection/Toxic URL Importer/Source/CURLMetadataImporter.m
Have fun.
Jon.
_______________________________________________
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
References: | |
| >webloc files (From: Aaron Wallis <email@hidden>) |