Scan med din iPhone for at installere
I’m a big Day One journal user and one of the ways that I use it is to save my favorite quotes. Many times, a quote that I want to save comes when I’m listening to a podcast. This shortcut gets the quote, author, podcast name, and episode and saves it all to a Day One journal.
Nyheder
Version 1.0
First release
Hvad den gør
12 handlinger-
Comment"Save Quote to Day One (from Overcast) 📱" Shortcut by Brad Siefert, @bksiefert I'm a big Day One journal user and one of the ways that I use it is to save my favorite quotes. Many times, a quote that I want to save comes when I'm listening to a pod…
-
Ask for InputWhat quote do you want to save?
-
Ask for InputWho said it?
-
URL…
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Match Text
-
Get Variable
-
Match Text
-
Text
-
Make Rich Text from Markdown
-
Postcom.dayonelog.dayoneiphone
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#define color orange
#define glyph bookshelf
/*
"Save Quote to Day One (from Overcast) 📱" Shortcut by Brad Siefert, @bksiefert
I'm a big Day One journal user and one of the ways that I use it is to save my favorite quotes. Many times, a quote that I want to save comes when I'm listening to a podcast. This shortcut gets the quote, author, podcast name, and episode and saves it all to a Day One journal.
*/
const Quote = prompt("What quote do you want to save?")
const Author = prompt("Who said it?")
url(ShortcutInput)
const ContentsOfURL = downloadURL()
const HTMLFromRichText = makeHTML(ContentsOfURL)
const PodcastEpisode = containsText(HTMLFromRichText, "(?<=<meta name=\"og:title\" content=\").*?(?=—)")
// TODO: Get Variable not supported: Assign variable here to 'HTMLFromRichText'.
const PodcastName = containsText(HTMLFromRichText, "(?<= — ).*?(?=\" \/>)")
const Text = "# \\"{Quote}\\" \n— {Author}\n\n{PodcastName}\n{PodcastEpisode}"
getRichTextFromMarkdown(Text)
rawAction("com.dayonelog.dayoneiphone.post", {
"EntryJournal": "Quotes",
"EntryTags": "podcast",
"EntryText": "{}"
})
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra bksiefert
Du vil måske også kunne lide
Annonce