Scan med din iPhone for at installere
Simplecuts news!
Nyheder
Version 1.0
First release
Hvad den gør
23 handlinger-
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
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#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":
}
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Mere fra turtle
Du vil måske også kunne lide
Annonce