ShareShortcuts

Advent

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

rednaxela1234
„Advent“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit rednaxela1234 die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
54K
Gesichert
1
Aktionen
17
Kategorie
Fun
Version
1.0
Sprache
EN

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

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 1. Dez 2020

First release

Was er macht

17 Aktionen
  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

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#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)
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

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

Werbung

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung