ShareShortcuts

Advent

Advent calendar, plays music, gives you a string of text & shows you a GIF!

rednaxela1234
Fork “Advent”

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 rednaxela1234 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
54K
Saved
1
Actions
17
Category
Fun
Version
1.0
Language
EN

Advent calendar, plays music, gives you a string of text & shows you a GIF!

What's New

Version 1.0

First release

Version History
1.0 Dec 1, 2020

First release

What it does

17 actions
  1. Date
  2. Format Date
  3. Number
  4. Format Date
  5. If
  6. Show Notification
    It's not December you darn idiot!
  7. If
  8. If
  9. Show Notification
    Sorry wait for the new year :(
  10. If
  11. Dictionary
  12. Get Dictionary Value
  13. Find Music
  14. Play Music
  15. Search Giphy
  16. Show Notification
    …
  17. Quick Look

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/calendar'
#define color yellow
#define glyph star

currentDate()
const FormattedDate = formatDate(, "Custom", "dd")
const Number = number(FormattedDate)
const FormattedDate1 = formatDate(, "Custom", "MMM")

if FormattedDate1 != "Dec" {
	showNotification("It's not December you darn idiot!", FormattedDate1)
} else {
	if Number > 25 {
		showNotification("Sorry wait for the new year :(", Number)
	} else {
		const Dictionary = {
			"01": "First of december!",
			"02": "Coming closer!",
			"03": "Dasher \u0026 Dancer",
			"04": "And then comes Ruldoth!",
			"05": "The red nosed…",
			"06": "Christmas,",
			"07": "Reindeer",
			"08": "St Nicholous",
			"09": "Sant Nicklause",
			"10": "Santa Clause",
			"11": "Good tidings to you",
			"12": "You, And your kin",
			"13": "Two front teeth",
			"14": "Deck the halls",
			"15": "Boughs of holly",
			"16": "Falalalala",
			"17": "Falalala",
			"18": "So close…",
			"19": "Closer.",
			"20": "20th",
			"21": "I can see santa clause",
			"22": "Preparing the sleigh",
			"23": "Jingle jangle",
			"24": "Christmas eve",
			"25": "Merry christmas!"
		}
		rawAction("is.workflow.actions.filter.music", {
			"WFContentItemFilter": "",
			"WFContentItemSortProperty": "Random"
		})
		playMusic(Music)
		const GIFs = getGifs()
		showNotification(, false)
		quicklook(GIFs)
	}
}
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

You Might Also Like

See All
Advertisement