Preview
https://www.icloud.com/shortcuts/eff4ebdd30f045e78bd1aa6840db22b1
If you found this shortcut, please use this to install it!
What's New
Version 1.0
First release
What it does
27 actions-
Text
-
Set Name
-
Get Contacts from Input
-
Choose from List
-
Get Details of Contacts
-
If
-
Open URLs
-
If
-
If
-
Open URLs
-
If
-
If
-
Open URLs
-
If
-
If
-
Open URLs
-
If
-
If
-
Show Result
-
If
-
If
-
Choose from MenuSettings
-
Choose from MenuVersion
-
Show Result
-
Choose from MenuAbout
-
Show Result
-
If
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/contacts'
#define color darkblue
#define glyph play
const Text = "BEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Prime Video;;;;\nORG:A streaming service by amazon.;\nURL:https://apps.apple.com/us/app/amazon-prime-video/id545519333\nPHOTO;ENCODING=b:\nEND:VCARD\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Youtube;;;;\nORG:A Video streaming service by Google.;\nURL:https://youtube.com\nPHOTO;ENCODING=b:\nEND:VCARD\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Pluto TV;;;;\nORG:A completely free streaming service.;\nURL: https://apps.apple.com/us/app/pluto-tv-live-tv-and-movies/id751712884\nPHOTO;ENCODING=b:\nEND:VCARD\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Netflix;;;;\nORG:One of the most popular streaming services in the world.;\nURL: https://apps.apple.com/us/app/netflix/id363590051\nPHOTO;ENCODING=b:\nEND:VCARD\nBEGIN:VCARD\nVERSION:3.0\nN;CHARSET=utf-8:Settings;;;;\nORG:Open Settings.;\nURL:if you read this, touch grass\nPHOTO;ENCODING=b:\nEND:VCARD"
const RenamedItem = setName(Text, "menu.vcf")
const Contacts = getContacts(RenamedItem)
const ChosenItem = chooseFromList(Contacts)
const Name = getContactDetail(ChosenItem, "Name")
if Name == "Pluto TV" {
openURL("https://apps.apple.com/us/app/pluto-tv-live-tv-and-movies/id751712884")
} else {
}
if Name == "Netflix" {
openURL("https://apps.apple.com/us/app/netflix/id363590051")
} else {
}
if Name == "Prime Video" {
openURL("https://apps.apple.com/us/app/amazon-prime-video/id545519333")
} else {
}
if Name == "Youtube" {
openURL("Youtube.com")
} else {
}
if !Name {
show("Error 262: VCard error. Please try again later.")
} else {
}
if Name == "Settings" {
menu "Settings" {
item "Version":
show("1.0")
item "About":
show("Your #1 streamer.")
}
} else {
}
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 vultario
You Might Also Like
Advertisement