Do You Have A URL but you don’t want to type it in… We got you covered use the shortcut Now!
What's New
Version 1.0
First release
What it does
24 actions-
Choose from MenuWhat do you have for a URL Today? …
-
Choose from MenuCamera
-
Choose from MenuWhich one For Camera? …
-
Choose from MenuPicture
-
Take Photo
-
Choose from MenuVideo
-
Take Video
-
Extract Text from Image
-
If
-
Open URLs
-
If
-
Show Alert
-
Choose from MenuPhoto
-
Select Photos
-
Extract Text from Image
-
If
-
Show Web Page
-
If
-
Show Alert
-
Ask for InputDo you want to run this again?
-
If
-
Run ShortcutDetract URL From Photo
-
If
-
Stop This Shortcut
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/media'
#define color darkblue
#define glyph network
const MenuResult = menu "What do you have for a URL Today? {Device['Name']}" {
item "Camera":
menu "Which one For Camera? {Device['Name']}" {
item "Picture":
takePhoto(1, true)
item "Video":
takeVideo()
}
const TextFromImage = extractImageText(MenuResult)
if TextFromImage {
openURL(TextFromImage)
} else {
confirm("{TextFromImage} cannot be found to show. Unfortunately we're can't take you there.")
}
item "Photo":
const Photos = selectPhotos()
const TextFromImage1 = getTextFromImage(Photos)
if TextFromImage1 {
showWebpage(TextFromImage1)
} else {
confirm("{TextFromImage1} cannot be found to show. Unfortunately we're can't take you there.")
}
}
const ProvidedInput = prompt("Do you want to run this again?")
if ProvidedInput beginsWith "Y" {
runSelf(ProvidedInput)
} else {
stop()
}
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 thefinders
You Might Also Like
Advertisement