ShareShortcuts

The Music Controller

a music controller

theshortcutguy2
Fork “The Music Controller”

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 theshortcutguy2 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
39K
Saved
0
Actions
25
Category
Music
Version
1.0
Language
EN

a music controller

What's New

Version 1.0

First release

Version History
1.0 Sep 17, 2022

First release

What it does

25 actions
  1. Choose from Menu
    Music Controller
  2. Choose from Menu
    Seek Time
  3. Seek
  4. Choose from Menu
    Set Playback Destination
  5. Setplaybackdestination
  6. Choose from Menu
    Select Music
  7. Choose from Menu
    Play Specific Music
  8. Play Music
  9. Choose from Menu
    Get Current Song
  10. Get Current Song
  11. Show Alert
  12. Choose from Menu
    Skip Back
  13. Skip Back
  14. Choose from Menu
    Play/Pause
  15. Play/Pause
  16. Choose from Menu
    Skip Forward
  17. Skip Forward
  18. Choose from Menu
    Handoff Music
  19. Handoffplayback
  20. Choose from Menu
    Get Artist
  21. Get Music Detail
  22. Choose from Menu
    Clear Up Next
  23. Clear Up Next
  24. Choose from Menu
    Add to Up Next
  25. Play Next

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'
#define color red
#define glyph musicNoteAlt


menu "Music Controller" {
item "Seek Time":
	seek(, Ask)
item "Set Playback Destination":
	rawAction("is.workflow.actions.setplaybackdestination", {
		"WFMediaRoute": "Ask"
	})
item "Select Music":
item "Play Specific Music":
	playMusic(Ask)
item "Get Current Song":
	const CurrentSong = getCurrentSong()
	confirm(CurrentSong)
item "Skip Back":
	skipBack()
item "Play/Pause":
	pause()
item "Skip Forward":
	skipFwd()
item "Handoff Music":
	rawAction("is.workflow.actions.handoffplayback", {
		"WFDestinationMediaRoute": "Ask",
		"WFSourceMediaRoute": "Ask"
	})
item "Get Artist":
	getMusicDetail(CurrentSong, "")
item "Clear Up Next":
	clearUpNext()
item "Add to Up Next":
	playLater(CurrentSong)
}
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 theshortcutguy2

See All

You Might Also Like

See All
Advertisement