ShareShortcuts

Shortweb

TinyWeb, with favorites

turtle
Fork “Shortweb”

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
2
Actions
52
Category
API
Version
1.0
Language
EN

TinyWeb, with favorites

What's New

Version 1.0

First release

Version History
1.0 Jan 24, 2021

First release

What it does

52 actions
  1. Dictionary
  2. Set Variable
    Properties
  3. Text
  4. Set Variable
    Favorites
  5. Get File
  6. Set Variable
    language
  7. If
  8. Show Alert
  9. Choose from Menu
    Language Selection
  10. Choose from Menu
    English (US)
  11. Text
  12. Choose from Menu
    English (UK)
  13. Text
  14. Create Folder
  15. Save File
  16. Run Shortcut
  17. If
  18. Text
  19. If
  20. Text
  21. Choose from Menu
    🌐 Shortweb 🌐
  22. Choose from Menu
    Open URL
  23. URL
    …
  24. If
  25. Replace Text
  26. Set Variable
    ShortwebCommand
  27. If
  28. Text
  29. Quick Look
  30. Run Shortcut
  31. If
  32. If
  33. Text
  34. Quick Look
  35. Run Shortcut
  36. If
  37. If
  38. Show Web Page
  39. Wait to Return
  40. Run Shortcut
  41. Choose from Menu
    favorites
  42. Split Text
  43. Choose from List
  44. Show Web Page
  45. Run Shortcut
  46. Choose from Menu
    Join the BETA program!
  47. Get Contents of URL
    simplecuts.glitch.me/apps/Shortweb/beta.plist
  48. Set Name
  49. Get Link to File
  50. Get Component of URL
  51. Text
  52. Open URLs

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'
#include 'actions/text'
#include 'actions/documents'
#define color lightblue
#define glyph globe

@Properties = {
	"Name": "Shortweb",
	"Version": "1.0"
}
@Favorites = "https://www.google.com\nhttps://www.shareshortcuts.com\nhttps://www.routinehub.co"
getFileFromFolder(, "shortweb/data.txt", false)
@language

const MenuResult = if !@language {
	confirm("Hi! Welcome to Shortweb!")
	menu "Language Selection" {
	item "English (US)":
	item "English (UK)":
	}
	createFolder("shortweb/")
	saveFile("shortweb/data.txt", MenuResult)
	runSelf()
}

if @language contains "UK" {
} else {
}

menu "🌐 Shortweb 🌐" {
item "Open URL":
	const URL = url(Ask)
	if URL contains "shortweb:/" {
		replaceText("shortweb:/", "", URL)
		@ShortwebCommand
		if @ShortwebCommand == "help" {
			const Text = "Well, you found this.\nType shortweb:/info for more information.\nYes.\nThats the only command."
			quicklook(Text)
			run(@Properties, nil)
		} else {
			if @ShortwebCommand contains "info" {
				const Text1 = "• Information •\nMade by Simplecuts."
				quicklook(Text1)
				run(@Properties, nil)
			} else {
			}
		}
	} else {
		showWebpage(URL)
		waitToReturn()
		run(@Properties, nil)
	}
item favorites:
	const SplitText = splitText(@Favorites)
	chooseFromList(SplitText)
	showWebpage()
	runSelf()
item :
	const ContentsOfURL = downloadURL("simplecuts.glitch.me/apps/Shortweb/beta.plist")
	const RenamedItem = setName(ContentsOfURL, "Shortweb Beta.shortcut")
	getFileLink(RenamedItem)
	const betaurl = getURLDetail(, "Path")
	const Text2 = "workflow:/{betaurl}"
	openURL(Text2)
}
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