Preview
DELETED
What's New
Version 11.0
DELETED
What it does
15 actions-
CommentMade by QuartzWarrior - Uses tiny url - Stores shortened urls in iCloud/Shortcuts/ReUp/URL
-
Get File
-
If
-
Create Folder
-
Show AlertFirst time running shortcut.
-
Save File
-
If
-
If
-
Ask for InputWhat do you want this link to be called?
-
Get Contents of URLhttp://tinyurl.com/api-create.php?url=…
-
Copy to Clipboard
-
Save File
-
Show NotificationThe URL you had in your clipboard has been changed to …
-
If
-
Show AlertError
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/documents'
#define color taupe
#define glyph pill
/*
Made by QuartzWarrior
- Uses tiny url
- Stores shortened urls in iCloud/Shortcuts/ReUp/URL
*/
const File = getFileFromFolder(, "ReUp/URL", false)
if !File {
createFolder("ReUp/URL")
alert("This shortcut will take the clipboard and shorten the link to tinyurl. This shortcut will also save the links in iCloud Drive so the data will not be lost.", "First time running shortcut.")
saveFile("ReUp/URL/DELETE_ME.txt")
} else {
if contains "http" {
prompt("What do you want this link to be called?")
const ContentsOfURL = jsonRequest("http://tinyurl.com/api-create.php?url={Clipboard}", "GET", {})
setClipboard(ContentsOfURL)
saveFile("ReUp/URL/{}.txt", ContentsOfURL)
showNotification("The URL you had in your clipboard has been changed to {Clipboard}", "Done! | Success!", false)
} else {
alert("Please have a URL copied.", "Error")
}
}
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 quartzwarrior
You Might Also Like
Advertisement