I have an HTML file with a few hundred bookmarks. I’d like import it into OmniFocus, with the label as the title, and the link as the note. I expect I’ll need an automation. Does anyone know of something that would work?
I would need to see the file or an example with e.g. 3 URLs (any will do) to see the structure and be able to automate.
I couldn’t upload a html or txt file, and pasting the raw html didn’t look right, so I printed a sample file to a pdf. The text is selectable. I hope this helps. Thanks for taking a look.
Bookmark File Example.pdf (20.7 KB)
Is the real file .html?
I’m on vacation this week. Seeing your example URLs I was actually in Denmark, yesterday.
Yes, the real file is .html
Enjoy your vacation.
Hi @bhupesh,
The simplest solution is an Apple Shortcut. I have a rough prototype working, but noticed an issue I need to ask you about.
When I copy the HTML from the provided PDF and extract the title for the URL (not the URL), I get new lines in the text.
Do you have the same issue in the original file when you copy text like the following?
Kitchen
Window: The Art Of The Danish Open-Face Sandwich, Or Smorrebrod :
Here‘s a first prototype. I noticed a few issues though. There are URLs with text that contains | and : characters. They seem not to work, but it should be possible for me to replace these characters.
Take this Apple Shortcut. Copy the content of your HTML file to the first text field and please tell me your findings. It‘ll create actions in your Inbox.
https://www.icloud.com/shortcuts/173079b68bdf44c19d1fbc140ea73aff
Hi Logan,
99.99% success, there were only a few issues with some of the oddly formatted names. I’m thrilled! Thank You!
I never thought of using shortcuts for this. I’m going to study your code and learn a few things.
I’d like to buy you a beer.
Happy to hear I could help. Had a few (quiet) minutes at a car repair shop today.