ShareShortcuts

MyUpdater

Basically like Shortcuts Updater but much more lightweight, and basically much better

daboy
Fork “MyUpdater”

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 daboy 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
50K
Saved
3
Actions
53
Category
Productivity
Version
1.4
Language
EN

Basically like Shortcuts Updater but much more lightweight, and basically much better. It works the same because I don’t want to confuse anyone. So just find how to use Shortcuts Updater, and do it but with this. If you need any help, tell me in the comments.

What's New

Version 1.4

Fixed a slight bug.

Version History
1.4 Jul 4, 2021

Added the ability to view changes.

1.4 Jul 4, 2021

Fixed a slight bug.

1.3 Jul 3, 2021

Fixed a bug where MyUpdater always said a new version for MyUpdater is available, even when one wasn’t.

1.2 Jun 26, 2021

Fixed a MAJOR bug that stopped it from working.

1.1 Jun 26, 2021

Made MyUpdater check for updates when you tap the shortcut without a shortcut input (tapping it manually.)

1.0 Jun 26, 2021

First release

What it does

53 actions
  1. Number
  2. Get IP Address
  3. If
  4. Stop This Shortcut
  5. If
  6. Choose from Menu
    Which do you want to do? (Messaging me shows your name to me, but if you don't trust me then you don't have to send anything.)
  7. Choose from Menu
    Check for updates
  8. Get Contents of URL
    shareshortcuts.com/1444.update
  9. Get Dictionary Value
  10. Get Numbers from Input
  11. If
  12. Get Item from List
  13. Text
  14. Choose from Menu
    …
  15. Choose from Menu
    Yes
  16. Get Dictionary Value
  17. Open URLs
  18. Stop This Shortcut
  19. Choose from Menu
    No
  20. Nothing
  21. If
  22. Show Notification
    MyUpdater has no new updates.
  23. Choose from Menu
    Check for updates on any shortcut
  24. Ask for Input
    What is the name of the shortcut? (Optional)
  25. Ask for Input
    What is the version you are currently using on that shortcut? (Not optional)
  26. Ask for Input
    What is the shareshortcuts ID? (Not optional. To find the ID look at the URL and find what comes before the name.)
  27. Dictionary
  28. Run Shortcut
    MyUpdater
  29. Choose from Menu
    Message developer
  30. Send Email
  31. Stop This Shortcut
  32. Get Dictionary Value
  33. Set Variable
    Name
  34. Get Dictionary Value
  35. Set Variable
    Version
  36. Get Dictionary Value
  37. Set Variable
    ID
  38. Replace Text
  39. Get Contents of URL
    shareshortcuts.com/….update
  40. Get Dictionary Value
  41. Get Dictionary Value
  42. If
  43. Get Item from List
  44. Text
  45. Choose from Menu
    …
  46. Choose from Menu
    Yes
  47. Get Dictionary Value
  48. Open URLs
  49. Stop This Shortcut
  50. Choose from Menu
    No
  51. Nothing
  52. If
  53. Nothing

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/network'
#define color green
#define glyph smileyFace

const CurrentVersion = 1.4
const CurrentIPAddress = getExternalIP()

if !CurrentIPAddress {
	stop()
}

if !ShortcutInput {
	menu "Which do you want to do? (Messaging me shows your name to me, but if you don't trust me then you don't have to send anything.) " {
	item "Check for updates":
		const ContentsOfURL = downloadURL("shareshortcuts.com/1444.update")
		const CVersion = getValue(ContentsOfURL['Shortcut'], "Version")
		const Version = getNumbers(CVersion)
		if Version > CurrentVersion {
			getFirstItem(ContentsOfURL['Changelog'])
			menu  {
			item "Yes":
				const DictionaryValue = getValue(ContentsOfURL['Shortcut'], "URL-download")
				openURL(DictionaryValue)
				stop()
			item "No":
			}
		} else {
			showNotification("MyUpdater has no new updates.", "Hm", false)
		}
	item "Check for updates on any shortcut":
		const Name = prompt("What is the name of the shortcut? (Optional)")
		const Version1 = prompt("What is the version you are currently using on that shortcut? (Not optional)", "Number")
		const ID = prompt("What is the shareshortcuts ID? (Not optional. To find the ID look at the URL and find what comes before the name.)", "Number")
		const Dictionary = {
			"name": "{Name}",
			"sharei": "{ID}",
			"version": "{Version1}"
		}
		runSelf(Dictionary)
	item "Message developer":
		sendEmail(, "[email protected]", "", "")
	}
	stop()
}
@Name = ShortcutInput['name']
@Version = ShortcutInput['version']
@ID = ShortcutInput['shareid']
const ShortName = replaceText(" ", "", @Name)
const ContentsOfURL1 = downloadURL("shareshortcuts.com/{@ID}.update")
const Shortcut = getValue(ContentsOfURL1, "Shortcut")
const Version2 = getValue(Shortcut, "Version")

if Version2 > @Version {
	getRandomItem(ContentsOfURL1['Changelog'])
	menu  {
	item "Yes":
		const DictionaryValue1 = getValue(Shortcut, "URL-download")
		openURL(DictionaryValue1)
		stop()
	item "No":
		nothing()
	}
} else {
}
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 daboy

See All

You Might Also Like

See All
Advertisement