Scan with your iPhone to install
For Shortcuts Coding Language (ALPHA)
What's New
Version 1.0
First release
What it does
9 actions-
Text
-
Text
-
Split Text
-
If
-
Get Item from List
-
If
-
Set Focus
-
If
-
Run ShortcutShortcuts Coding Language (ALPHA)
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#define color darkgray
#define glyph circledI
const Text1 = "Ignore ALPHA Warning\nSet Focus :1: Do Not Disturb :2: On\nBlock Mode Block Mode Example"
const Text = "{ShortcutInput}"
const SplitText = splitText(Text)
if Text contains "Block Mode Text" {
const ItemFromList = getFirstItem(SplitText)
if ItemFromList == "Do Not Disturb" {
toggleFocusMode()
}
} else {
runSelf(Text1)
}
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 coltensus
You Might Also Like
Advertisement