Mit dem iPhone scannen, um zu installieren
Vorschau
DELETED
Neue Funktionen
Version 11.0
DELETED
Was er macht
15 Aktionen-
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
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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")
}
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von quartzwarrior
Das gefällt dir vielleicht auch
Werbung