Re: accessing Safari Bookmarks
Re: accessing Safari Bookmarks
- Subject: Re: accessing Safari Bookmarks
- From: Rams <email@hidden>
- Date: Tue, 10 Feb 2004 12:38:26 -0500
Some Cocoa/Java to get you started...
//pathToFile is your ~/Library/Safari/Bookmarks.plist
URL fileURL = NSPathUtilities.URLWithPath(pathToFile);
NSData xmldata = new NSData(fileURL);
int opt = NSPropertyListSerialization.PropertyListImmutable;
int[] format = {NSPropertyListSerialization.PropertyListXMLFormat};
String[] err = new String[1];
// Read in the plist. Object is a NSDictionary.
Object plist = NSPropertyListSerialization.propertyListFromData(xmldata,
opt,
format,
err);
On Feb 9, 2004, at 11:29 PM, Steve Sheets wrote:
>
Is there any documentation, or experiment, with reading and modifying
>
the Safari bookmarks from within another program?
--
Learn how to cryptographically sign your mail in Panther
http://www.joar.com/certificates/body.html
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.