ShareShortcuts

Save Quote from Overcast📱

bksiefert
Bifurcar “Save Quote from Overcast📱”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que bksiefert reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
60K
Guardado
0
Acciones
12
Categoría
Utilities
Versión
1.0
Idioma
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.

Novedades

Versión 1.0

First release

Historial de versiones
1.0 14 de abr. de 2020

First release

Qué hace

12 acciones
  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

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#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": "{}"
})
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de bksiefert

Ver todo

También te puede gustar

Ver todo
Publicidad