ShareShortcuts

Save Quote from Overcast📱

bksiefert
Fazer fork de “Save Quote from Overcast📱”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que bksiefert receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
60K
Salvo
0
Ações
12
Categoria
Utilities
Versão
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.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 14 de abr de 2020

First release

O que ele faz

12 ações
  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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de bksiefert

Ver tudo

Você também pode gostar

Ver tudo
Publicidade