ShareShortcuts

Save Quote from Overcast📱

bksiefert
Fork “Save Quote from Overcast📱”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so bksiefert gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
60K
Saved
0
Actions
12
Category
Utilities
Version
1.0
Language
EN

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.

What's New

Version 1.0

First release

Version History
1.0 Apr 14, 2020

First release

What it does

12 actions
  1. 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…
  2. Ask for Input
    What quote do you want to save?
  3. Ask for Input
    Who said it?
  4. URL
    …
  5. Get Contents of URL
    …
  6. Make HTML from Rich Text
  7. Match Text
  8. Get Variable
  9. Match Text
  10. Text
  11. Make Rich Text from Markdown
  12. Post
    com.dayonelog.dayoneiphone

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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=\").*?(?=&mdash;)")
// TODO: Get Variable not supported: Assign variable here to 'HTMLFromRichText'.
const PodcastName = containsText(HTMLFromRichText, "(?<= &mdash; ).*?(?=\" \/>)")
const Text = "# \\"{Quote}\\" \n— {Author}\n\n{PodcastName}\n{PodcastEpisode}"
getRichTextFromMarkdown(Text)
rawAction("com.dayonelog.dayoneiphone.post", {
	"EntryJournal": "Quotes",
	"EntryTags": "podcast",
	"EntryText": "{}"
})
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by bksiefert

See All

You Might Also Like

See All
Advertisement