Sets volume to 50%
Ask you how long you want to listen to your music 30 minutes or 1 hour
Pauses the music when the time is up
What's New
Version 1.1
Fix
What it does
12 actions-
Set Volume
-
Choose from MenuHow long do you want to listen?
-
Choose from Menu30 minutes
-
Select Music
-
Play Music
-
Wait
-
Play/Pause
-
Choose from Menu1 hour
-
Select Music
-
Play Music
-
Wait
-
Play/Pause
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/music'
#include 'actions/device'
#define color red
#define glyph videoIcon
setVolume(nil)
menu "How long do you want to listen?" {
item "30 minutes":
const Music = selectMusic(true)
playMusic(Music, Ask, "All")
wait(1800)
pause()
item "1 hour":
const Music1 = selectMusic(true)
playMusic(Music1, Ask, "All")
wait(3600)
play()
}
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
More by shortgram
You Might Also Like
Advertisement