ShareShortcuts
„URL shortening“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit quartzwarrior die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
56K
Gesichert
2
Aktionen
15
Kategorie
Utilities
Version
11.0
Sprache
EN

Vorschau

DELETED

Neue Funktionen

Version 11.0

DELETED

Versionsverlauf
11.0 17. Dez 2020

DELETED

10.411 14. Dez 2020

Fixed 2 bugs.

10.405 13. Dez 2020

Reducing actions

10.404 13. Dez 2020

• R⤓Updater Engine v2.5 • Fix bugs!!

10.403 13. Dez 2020

Fixed issues

10.402 12. Dez 2020

• R⤓Updater Engine v2.3 • Fix bugs

9.2 4. Nov 2020

Fix issues!!

9.1 31. Okt 2020

Fixed Bugs!

1.0 23. Okt 2020

First release

Was er macht

15 Aktionen
  1. Comment
    Made by QuartzWarrior - Uses tiny url - Stores shortened urls in iCloud/Shortcuts/ReUp/URL
  2. Get File
  3. If
  4. Create Folder
  5. Show Alert
    First time running shortcut.
  6. Save File
  7. If
  8. If
  9. Ask for Input
    What do you want this link to be called?
  10. Get Contents of URL
    http://tinyurl.com/api-create.php?url=…
  11. Copy to Clipboard
  12. Save File
  13. Show Notification
    The URL you had in your clipboard has been changed to …
  14. If
  15. Show Alert
    Error

Als Code ansehen
Beta

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

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung