ShareShortcuts

GIF and QR maker

GIF and QR maker

iconickr
Fork “GIF and QR maker”

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 iconickr 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
52K
Saved
5
Actions
42
Category
Photos and videos
Version
1.0
Language
EN

GIF and QR maker

What's New

Version 1.0

First release

Version History
1.0 Mar 3, 2021

First release

What it does

42 actions
  1. Dictionary
  2. Get IP Address
  3. If
  4. Get File
  5. If
  6. Get Time Between Dates
  7. If
  8. Nothing
  9. If
  10. Create Folder
  11. Nothing
  12. If
  13. Save File
  14. Get Contents of URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  15. Get Dictionary Value
  16. If
  17. Choose from Menu
    A new Version is available. Version: … -> … Changes: …
  18. Choose from Menu
    Get new Version
  19. Replace Text
  20. Open URLs
  21. Stop This Shortcut
  22. Choose from Menu
    Skip Update
  23. Get Device Details
  24. If
  25. If
  26. Stop This Shortcut
  27. Select Photos
  28. Make GIF
  29. Quick Look
  30. Choose from Menu
  31. Choose from Menu
    Save to Camera roll
  32. Save to Photo Album
  33. Choose from Menu
    Save to iCloud Drive
  34. Save File
  35. Choose from Menu
  36. Choose from Menu
    Make QR code
  37. Generate QR Code
  38. Quick Look
  39. Choose from Menu
    Save GIF
  40. Save to Photo Album
  41. Show Result
  42. Choose from Menu
    Exit ❌

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/network'
#define color darkblue
#define glyph QRCode

const CurrentIPAddress = getExternalIP()

if CurrentIPAddress contains "." {
	const File = getFile("{['Path']}/LastUpdateCheck.txt", false)
	if File {
		rawAction("is.workflow.actions.gettimebetweendates", {
			"WFInput": "{CurrentDate}",
			"WFTimeUntilFromDate": "{File}",
			"WFTimeUntilUnit": "Hours"
		})
		if TimeBetweenDates > 8 {
		}
	} else {
		createFolder(['Path'])
	}
	if !IfResult {
		saveFile("{['Path']}/LastUpdateCheck.txt", true)
		const ContentsOfURL = downloadURL("https://routinehub.co/api/v1/shortcuts/{['ID']}/versions/latest")
		const DictionaryValue = getValue(ContentsOfURL, "Version")
		if DictionaryValue != Dictionary['Version'] {
			menu "A new Version is available.\nVersion: {['Version']} -> {ContentsOfURL['Version']}\n\nChanges:\n{ContentsOfURL['Notes']}" {
			item "Get new Version":
				const UpdatedText = replaceText("https://www.icloud.com", "shortcuts:/", ContentsOfURL['URL'])
				openURL(UpdatedText)
				stop()
			item "Skip Update":
			}
		}
	}
}
const SystemVersion = getDeviceDetail("System Version")

if SystemVersion beginsWith "14" {
} else {
	stop()
}
const Photos = selectPhotos(true)
const GIF = makeGIF(Photos)
quicklook(GIF)

menu nil {
item "Save to Camera roll":
	savePhoto(GIF)
item "Save to iCloud Drive":
	saveFilePrompt(GIF)
}

menu nil {
item "Make QR code":
	const QRCode = makeQRCode(GIF, [{float 0} {float 0} {float 0} {float 1}], [{float 2} {float 2} {float 2} {float 1}])
	quicklook(QRCode)
item "Save GIF":
	savePhoto(GIF)
	show()
item "Exit ❌":
}
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 iconickr

See All

You Might Also Like

See All
Advertisement