Escanea con tu iPhone para instalar
Simplecuts news!
Novedades
Versión 1.0
First release
Qué hace
23 acciones-
Get File
-
If
-
Text
-
If
-
Text
-
Set Variablecache
-
Get Contents of URLsimplecuts.glitch.me/apps/simplenews/startnews.txt
-
If
-
If
-
Append to Text File
-
Choose from Menu…
-
Choose from MenuView cache
-
If
-
Show Alert
-
Show Web Page
-
Stop This Shortcut
-
If
-
Split Text
-
Choose from List
-
Show Result
-
Stop This Shortcut
-
Choose from MenuExit
-
Text
Ver como código
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 openBook
const File = getFileFromFolder(, "newscache.txt", false)
if File {
} else {
}
@cache = "Simplenews-error.NoCache"
const news = downloadURL("simplecuts.glitch.me/apps/simplenews/startnews.txt")
if @cache contains "NoCache" {
} else {
appendToFile("newscache.txt", "{news}₽»")
}
menu news {
item "View cache":
if @cache contains "NoCache" {
confirm("Requires Simplenews Cache Utility.")
showWebpage("https://www.icloud.com/shortcuts/98e96672352d46c0821d0c1dcd9c57d9")
stop()
} else {
const SplitText = splitText(File, "₽»")
const ChosenItem = chooseFromList(SplitText)
show(ChosenItem)
stop()
}
item "Exit":
}
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 turtle
También te puede gustar
Publicidad