• 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: accessing Safari Bookmarks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >accessing Safari Bookmarks (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: base64
  • Next by Date: Re: Making the correct button the default button?
  • Previous by thread: Re: accessing Safari Bookmarks
  • Next by thread: HTML-encoded characters mucking up my NSStrings
  • Index(es):
    • Date
    • Thread