ShareShortcuts

Save Quote from Overcast📱

bksiefert
Dupliquer « Save Quote from Overcast📱 »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que bksiefert soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
60K
Enregistré
0
Actions
12
Catégorie
Utilities
Version
1.0
Langue
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.

Nouveautés

Version 1.0

First release

Historique des versions
1.0 14 avr. 2020

First release

Ce qu’il fait

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

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#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": "{}"
})
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de bksiefert

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité