ShareShortcuts
Fork “Play My Hits”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so shortgram gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
59K
Saved
0
Actions
12
Category
Music
Version
1.1
Language
EN

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

Version History
1.1 Jun 24, 2020

Fix

1.0 Jun 24, 2020

First release

What it does

12 actions
  1. Set Volume
  2. Choose from Menu
    How long do you want to listen?
  3. Choose from Menu
    30 minutes
  4. Select Music
  5. Play Music
  6. Wait
  7. Play/Pause
  8. Choose from Menu
    1 hour
  9. Select Music
  10. Play Music
  11. Wait
  12. Play/Pause

View as code
Beta

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

See All

You Might Also Like

See All
Advertisement