ShareShortcuts
Bifurcar “URL shortening”

¿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 quartzwarrior 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
56K
Guardado
2
Acciones
15
Categoría
Utilities
Versión
11.0
Idioma
EN

Vista previa

DELETED

Novedades

Versión 11.0

DELETED

Historial de versiones
11.0 17 de dic. de 2020

DELETED

10.411 14 de dic. de 2020

Fixed 2 bugs.

10.405 13 de dic. de 2020

Reducing actions

10.404 13 de dic. de 2020

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

10.403 13 de dic. de 2020

Fixed issues

10.402 12 de dic. de 2020

• R⤓Updater Engine v2.3 • Fix bugs

9.2 4 de nov. de 2020

Fix issues!!

9.1 31 de oct. de 2020

Fixed Bugs!

1.0 23 de oct. de 2020

First release

Qué hace

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

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'
#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

Ver todo

También te puede gustar

Ver todo
Publicidad