TinyWeb, with favorites
What's New
Version 1.0
First release
What it does
52 actions-
Dictionary
-
Set VariableProperties
-
Text
-
Set VariableFavorites
-
Get File
-
Set Variablelanguage
-
If
-
Show Alert
-
Choose from MenuLanguage Selection
-
Choose from MenuEnglish (US)
-
Text
-
Choose from MenuEnglish (UK)
-
Text
-
Create Folder
-
Save File
-
Run Shortcut
-
If
-
Text
-
If
-
Text
-
Choose from Menu🌐 Shortweb 🌐
-
Choose from MenuOpen URL
-
URL…
-
If
-
Replace Text
-
Set VariableShortwebCommand
-
If
-
Text
-
Quick Look
-
Run Shortcut
-
If
-
If
-
Text
-
Quick Look
-
Run Shortcut
-
If
-
If
-
Show Web Page
-
Wait to Return
-
Run Shortcut
-
Choose from Menufavorites
-
Split Text
-
Choose from List
-
Show Web Page
-
Run Shortcut
-
Choose from MenuJoin the BETA program!
-
Get Contents of URLsimplecuts.glitch.me/apps/Shortweb/beta.plist
-
Set Name
-
Get Link to File
-
Get Component of URL
-
Text
-
Open URLs
View as code
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
You Might Also Like
Advertisement