ShareShortcuts

Simplenews

Simplecuts news!

turtle
Fork “Simplenews”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so turtle gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
53K
Saved
1
Actions
23
Category
Utilities
Version
1.0
Language
EN

Simplecuts news!

What's New

Version 1.0

First release

Version History
1.0 Jan 24, 2021

First release

What it does

23 actions
  1. Get File
  2. If
  3. Text
  4. If
  5. Text
  6. Set Variable
    cache
  7. Get Contents of URL
    simplecuts.glitch.me/apps/simplenews/startnews.txt
  8. If
  9. If
  10. Append to Text File
  11. Choose from Menu
    …
  12. Choose from Menu
    View cache
  13. If
  14. Show Alert
  15. Show Web Page
  16. Stop This Shortcut
  17. If
  18. Split Text
  19. Choose from List
  20. Show Result
  21. Stop This Shortcut
  22. Choose from Menu
    Exit
  23. Text

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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":
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by turtle

See All

You Might Also Like

See All
Advertisement