ShareShortcuts

Shorten URL

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

jayes14
Bifurcar “Shorten URL”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que jayes14 reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
38K
Guardado
3
Acciones
11
Categoría
Utilities
Versión
1.1
Idioma
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

Novedades

Versión 1.1

Upgraded to include Shortcuts Updater

Historial de versiones
1.1 27 de sep. de 2022

Upgraded to include Shortcuts Updater

1.0 27 de sep. de 2022

First release

Qué hace

11 acciones
  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

Ver como código
Beta

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'
#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 {
}
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 jayes14

Ver todo

También te puede gustar

Ver todo
Publicidad