Vista previa
DELETED
Novedades
Versión 11.0
DELETED
Qué hace
15 acciones-
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
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#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")
}
}
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de quartzwarrior
También te puede gustar
Publicidad