The link in question is here
James Shore: Agile Book Club: Visual Planning (with Jeff Patton and Gojko Adzic)
That’s not a YouTube link. It’s an embedded player.
Development would have to assess if changing this is feasible.
1 Like
My current workaround is using Markdownload (it put embedded youtube as iframe to output file), so this is not crucial for my workflow, but a feature that would be nice to have
You could
- download the web document as a bookmark into DT
- convert it into HTML there
- modify the following code (JavaScript, not AppleScript!) to your liking
(() => {
const app = Application("DEVONthink 3");
const r = app.selectedRecords()[0];
const s = r.source();
const youtubeLink = s.match(new RegExp('(https://www.youtube.com/embed\/[^"]+)'))[1];
})()
The first youtube link found in the document is saved in the variable youtubeLink
as a string. You can then add this string in any way you like to an md file.
This code is provided as is with no warranty. I tested it with the link you provided and there it did what it’s supposed to do. It might well fail with other web documents, though.
1 Like