Pré-visualização
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.
Novidades
Versão 1.0
First release
O que ele faz
15 ações-
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 as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele 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 no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de gramps
Você também pode gostar
Publicidade