Vista previa
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.
Novedades
Versión 1.0
First release
Qué hace
15 acciones-
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
Ver como código
Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.
#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")
Abrir en Cherri Playground
Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.
Valoraciones y reseñas
Escribe una reseña–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!
Publicidad
Más de gramps
También te puede gustar
Publicidad