Vorschau
Plays a selected playlist for a selected period of time, either locally, or to a remote speaker and then shuts down. Perfect to play quiet music while you fall asleep. Note: the timer app must be set to 'stop playing' when the timer ends. This is not programmable in shortcuts.
Adjust the code for your playlist and speaker name.
Neue Funktionen
Version 1.0
First release
Was er macht
15 Aktionen-
Show NotificationTimer app must be set to "Stop Playing" when timer ends.
-
Setplaybackdestination
-
Choose from MenuPlay Duration (mins)?
-
Choose from Menu15
-
Start Timer
-
Choose from Menu30
-
Start Timer
-
Choose from Menu45
-
Start Timer
-
Choose from Menu60
-
Start Timer
-
Choose from MenuContinuous
-
Set Volume
-
Play Music
-
Open App
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color darkorange
#define glyph clock
showNotification("Timer app must be set to \"Stop Playing\" when timer ends. ", "Important", false)
rawAction("is.workflow.actions.setplaybackdestination", {
"WFMediaRoute": ""
})
const MenuResult = menu " Play Duration (mins)?" {
item "15":
startTimer()
item "30":
startTimer()
item "45":
startTimer()
item "60":
startTimer()
item "Continuous":
}
setVolume(0.18214285)
playMusic(, "Songs", "All")
openApp("com.apple.Music")
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
Mehr von gramps
Das gefällt dir vielleicht auch
Werbung