ShareShortcuts
Fork “URL shortening”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so quartzwarrior gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
56K
Saved
2
Actions
15
Category
Utilities
Version
11.0
Language
EN

Preview

DELETED

What's New

Version 11.0

DELETED

Version History
11.0 Dec 17, 2020

DELETED

10.411 Dec 14, 2020

Fixed 2 bugs.

10.405 Dec 13, 2020

Reducing actions

10.404 Dec 13, 2020

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

10.403 Dec 13, 2020

Fixed issues

10.402 Dec 12, 2020

• R⤓Updater Engine v2.3 • Fix bugs

9.2 Nov 4, 2020

Fix issues!!

9.1 Oct 31, 2020

Fixed Bugs!

1.0 Oct 23, 2020

First release

What it does

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

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#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")
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by quartzwarrior

See All

You Might Also Like

See All
Advertisement