After iCloud helpfully synchronized my Safari bookmarks with an old backup, I wound up with multiple copies of every bookmark. So I cleverly imported them to DTPO and let it find all the duplicates. Now, after deleting the duplicates, I want to export the bookmarks back to Safari. But how?
Safari will only import an HTML file with a simple list of links. (If you use File>Export Bookmarks… in Safari, you will see the format it needs for importing.) It will not import a Table of Contents, because that is entirely DT x-links. It will not import a folder full of webloc files. It will not import an OPML, which is the only way I can export a list of HTML links.
I have searched the help documentation and the forum without success. Is there maybe a way to script this?
PS Here is a sample of the file I need from DTPO:
<!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>Favorites</H3>
<DL><p>
<DT><A HREF="https://read.amazon.com/">Kindle Cloud Reader</A>
<DT><A HREF="https://www.filemaker.com/help/14/fmp/en/">FMP 14 Help </A>
<DT><H3 FOLDED>Genealogy</H3>
<DL><p>
<DT><A HREF="http://trees.ancestry.com/tree/33384482/family">Ancestry.com</A>
<DT><A HREF="https://familysearch.org/learn/wiki/en/Family_History_Library">Family History Library</A>
And so on…