ShareShortcuts

Shorten URL

My awesome URL Shortener was inspired by someone else's shortcut

jayes14
„Shorten URL“ 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 jayes14 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
38K
Gesichert
3
Aktionen
11
Kategorie
Utilities
Version
1.1
Sprache
EN

My awesome URL Shortener was inspired by someone else's shortcut.

Their shortcut lacked in the main functionality, but it made up for it with sloppy unnecessary steps, ultimately causing it to not function properly. (oops did I say that out loud.)

I cleaned it up making a version that also provides notifications for when the shortcut:

– cannot detect a URL input

– is successful in completing the shortening (automatically applied to your clipboard)

– shortcut has an error

Neue Funktionen

Version 1.1

Upgraded to include Shortcuts Updater

Versionsverlauf
1.1 27. Sep 2022

Upgraded to include Shortcuts Updater

1.0 27. Sep 2022

First release

Was er macht

11 Aktionen
  1. Text
  2. Get Contents of URL
    …
  3. Get Text from Input
  4. Copy to Clipboard
  5. Show Notification
    …
  6. Comment
    Successful – the shortened URL will come after STATUS. If it was unsuccessful – “Error” will come after STATUS. If you continuously keep running into an “Error” this can mean that you have more than a URL selected. (i.e. an entire cell in a table, w…
  7. Get My Shortcuts
  8. If
  9. Dictionary
  10. Run Shortcut
    Shortcuts Updater
  11. If

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'
#define color red
#define glyph shrinkArrow

const ContentsOfURL = fileRequest(, "GET")
const Text = getText(ContentsOfURL)
setClipboard(Text)
showNotification(Text, "SHORTEN URL STATUS:", false, Text)
/*
Successful – the shortened URL will come after STATUS.

If it was unsuccessful – “Error” will come after STATUS.
If you continuously keep running into an “Error” this can mean that you have more than a URL selected. (i.e. an entire cell in a table, will result in an error.)
*/
const MyShortcuts = getShortcuts()

if MyShortcuts['Name'] contains "Shortcuts Updater" {
	const Dictionary = {
		"Name": "Shorten URL",
		"ShareID": 2181,
		"Version": "1.1"
	}
	run("Shortcuts Updater", Dictionary)
} else {
}
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 jayes14

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung