Results 1 to 10 of 10
  1. #1


    Member Since
    Oct 16, 2010
    Posts
    5
    Safari bookmarks - Windows
    Hi!

    Please tell me how I can import Safari bookmarks into my program. I don't know this file format.
    (Windows platform)

    Thank you.

  2. #2

    chscag's Avatar
    Member Since
    Jan 23, 2008
    Location
    Fort Worth, Texas
    Posts
    48,030
    Specs:
    Late 2013 27" iMac, iPad 3, iPhone 6s+, iPhone 6+, 3 iPods, El Capitan
    Just click on the File menu (top) when Safari is running. Click the export selection and give it a path where you want it saved. (Best to save it on your desktop.) The file will be saved as "Safari Bookmarks.html". Copy the file to a flash drive and then copy it to your Windows desktop. The html file can then be imported to Internet Explorer or Firefox for Windows.

  3. #3


    Member Since
    Oct 16, 2010
    Posts
    5
    Quote Originally Posted by chscag View Post
    Just click on the File menu (top) when Safari is running. Click the export selection and give it a path where you want it saved. (Best to save it on your desktop.) The file will be saved as "Safari Bookmarks.html". Copy the file to a flash drive and then copy it to your Windows desktop. The html file can then be imported to Internet Explorer or Firefox for Windows.
    Thanks for you reply but I am a developer. I need to parse this file and import bookmarks into my program, not into a browsers.

  4. #4

    chscag's Avatar
    Member Since
    Jan 23, 2008
    Location
    Fort Worth, Texas
    Posts
    48,030
    Specs:
    Late 2013 27" iMac, iPad 3, iPhone 6s+, iPhone 6+, 3 iPods, El Capitan
    Since it's an html file, you should be able to open it and parse the information you need. That's the only way to export bookmarks from Safari. (html)

  5. #5


    Member Since
    Oct 16, 2010
    Posts
    5
    'Bookmarks.plist' is not a HTML file.

    See attached file
    Attached Files Attached Files

  6. #6

    IvanLasston's Avatar
    Member Since
    Feb 26, 2010
    Location
    Rocky Mountain High, Colorado
    Posts
    2,116
    Specs:
    1.8 GHz i7 MBA 11" OSX 10.8.2
    I just tried Safari on Windows - and it put out a html file. Alt-F -> export bookmarks just as chscag said.

    With 3 posts - putting a zipfile with a plist is a little shady.

  7. #7


    Member Since
    Oct 16, 2010
    Posts
    5
    Quote Originally Posted by IvanLasston View Post
    I just tried Safari on Windows - and it put out a html file. Alt-F -> export bookmarks just as chscag said.

    With 3 posts - putting a zipfile with a plist is a little shady.
    Look at the 'Bookmarks.plist' with Notepad. It is not a HTML file.
    bplist00Ф
    V@XChildrenUTitle_WebBookmarkType_WebBookmarkUUID¤ ђ ћФ Ћ V Џ§ ! & XФ
    YURLString]URIDictionary_http://www.apple.com/Т
    PUtitleUApple_WebBookmarkTypeLeaf_$A9BBE87D-66A5-624D-B74F-87F46ED0294BФ
    _http://www.yahoo.com/Т
    VYahoo!_$955F1277-B439-0446-8C38-CCCFCD5D67A6Ф
    _http://maps.google.com/Т
    [Google Maps_$FBB8D758-D5FC-FD48-AF34-F39226B2C032Ф
    _http://www.youtube.com/Т
    WYouTube_$A26852CF-DE5F-0C43-BD3D-6E765FEE7404Ф
    " # %_http://www.wikipedia.org/Т
    " $YWikipedia_$D6665C3A-2A66-AA4A-94F2-F239482D4726Ф ' U V W© ( - 2 7 < A F K PФ
    ) * ,_http://www.cnn.com/Т
    ) +SCNN_$3722A501-F79A-5740-BD66-85E748CEA567Ф
    . / 1_http://www.nytimes.
    ...

  8. #8

    IvanLasston's Avatar
    Member Since
    Feb 26, 2010
    Location
    Rocky Mountain High, Colorado
    Posts
    2,116
    Specs:
    1.8 GHz i7 MBA 11" OSX 10.8.2
    That does look like a binary plist. I don't know what to tell you but here is the (partial cut and paste) html file I get when I say export bookmarks from Safari on windows.

    Code:
    <!DOCTYPE NETSCAPE-Bookmark-file-1>
            <HTML>
            <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
            <Title>Bookmarks</Title>
            <H1>Bookmarks</H1>
            <DT><H3 FOLDED>Bookmarks Bar</H3>
            <DL><p>
                    <DT><A HREF="http://www.apple.com/">Apple</A>
                    <DT><A HREF="http://www.yahoo.com/">Yahoo!</A>
                    <DT><A HREF="http://maps.google.com/">Google Maps</A>
                    <DT><A HREF="http://www.youtube.com/">YouTube</A>
                    <DT><A HREF="http://www.wikipedia.org/">Wikipedia</A>
                    <DT><H3 FOLDED>News</H3>
                    <DL><p>
                            <DT><A HREF="http://www.cnn.com/">CNN</A>
                            <DT><A HREF="http://www.nytimes.com/">The New York Times</A>
                            <DT><A HREF="feed://news.google.com/?output=rss">Google News</A>
                            <DT><A HREF="http://www.news.com/">CNET News.com</A>
                            <DT><A HREF="http://espn.go.com/">ESPN</A>
                            <DT><A HREF="http://www.latimes.com/">Los Angeles Times</A>
                            <DT><A HREF="http://news.bbc.co.uk/">BBC News</A>
                            <DT><A HREF="http://www.npr.org/">NPR</A>
                            <DT><A HREF="http://www.usatoday.com/">USA Today</A>
                    </DL><p>
                    <DT><H3 FOLDED>Popular</H3>
                    <DL><p>
                            <DT><A HREF="http://www.ebay.com/">eBay</A>
                            <DT><A HREF="http://www.amazon.com/">Amazon</A>
                            <DT><A HREF="http://www.flickr.com/">Flickr</A>
                            <DT><A HREF="http://www.expedia.com/">Expedia Travel</A>
                            <DT><A HREF="http://www.orbitz.com/">Orbitz</A>
                            <DT><A HREF="http://www.facebook.com/">Facebook</A>
                            <DT><A HREF="http://www.monster.com/">Monster Jobs</A>
                            <DT><A HREF="http://www.careerbuilder.com/">CareerBuilder</A>
                            <DT><A HREF="http://disney.go.com/">Disney</A>
                            <DT><A HREF="http://www.craigslist.org/">craigslist</A>
                    </DL><p>
            </DL><p>
            <DT><H3 FOLDED>Bookmarks Menu</H3>
            <DL><p>
            </DL><p>

  9. #9


    Member Since
    Oct 16, 2010
    Posts
    5
    If I export bookmarks using Safari browser, I will get a HTML file. It is true. But I need to work only with 'Bookmarks.plist' file without browser.
    I need to get 'Bookmarks.plist' by using my program, parse this file and import bookmarks into my program to view.
    If it is not corresponding forum, please tell me where I can get info about this 'Bookmarks.plist' file format?

  10. #10

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Plist files can be xml or binary format. I would assume from what you've shown that the Windows plist for Safari bookmarks is in fact a binary one.

    If you're working on a Mac, you can try converting the binary version to an xml one using plutil. Call that from your app and you should have what you need. Once you have the xml version, you should be able to easily parse it. If you're using Python, it has a plist library (see here) but it looks to only work with xml ones.

    More reading on plists.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Safari loading my Windows Bookmarks
    By ZoNoMo in forum OS X - Operating System
    Replies: 3
    Last Post: 11-13-2011, 10:28 PM
  2. Unable to scroll through list of bookmarks on Safari (Windows 7)
    By stcx86 in forum OS X - Apps and Games
    Replies: 0
    Last Post: 05-07-2011, 02:51 AM
  3. Safari / Bookmarks
    By 05GT in forum OS X - Apps and Games
    Replies: 5
    Last Post: 06-26-2009, 03:18 PM
  4. Safari Bookmarks
    By JohnTheMacGeek in forum Switcher Hangout
    Replies: 2
    Last Post: 03-02-2008, 11:33 PM
  5. Safari Bookmarks
    By cornelius in forum OS X - Operating System
    Replies: 0
    Last Post: 05-08-2006, 07:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •