Preview
This shortcut is ideal if you have to make a difficult decision and can’t make up your mind – let the eight ball decide for you!
What's New
Version 1.1
Improved style
What it does
6 actions-
List
-
Get Item from List
-
Text
-
Make Rich Text from HTML
-
Make Image from Rich Text
-
Show Result
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/text'
#define color darkgray
#define glyph circle
const List = list("It is<br>certain", "It is<br>decidedly<br>so", "Without<br>a doubt", "Yes<br>definitely", "You may<br>rely on it", "As I<br>see it,<br>yes", "Most<br>likely", "Outlook<br>good ", "Yes", "Signs point<br>to yes", "Reply hazy,<br>try again", "Ask<br>again<br>later", "Better<br>not tell<br>you now", "Cannot<br>predict<br>now", "Concentrate<br>and ask<br>again", "Don't<br>count<br>on it", "My<br>reply<br>is no", "My sources<br>say no", "Outlook<br>not so<br>good", "Very<br>doubtful")
getFirstItem(List)
const Text = "<html>\n<head>\n<style>\nbody { background: #1826C8;\nbackground: radial-gradient(circle, #314899 25%, rgba(6, 6, 48, 1) 100%); color: white; height: 100%; display: flex; justify-content: center; align-items: center; font-family: -apple-system; }\nh2 { text-align: center; font-weight: 600; text-transform: uppercase; font-size: 10vw; padding: 2rem; text-shadow: 5px 5px 0px rgba(0,0,0,0.5);}\n</style>\n</head>\n<body>\n<h2>{}</h2>\n</body>\n</html>"
const RichTextFromHTML = getRichTextFromHTML(Text)
makeImageFromRichText(RichTextFromHTML, "1024", "768")
show()
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 cdmoro
You Might Also Like
Advertisement