Play Music / playmusic (internally is.workflow.actions.playmusic)

This action requires that Shortcuts has permission to use WFAppleMusicAccessResource,WFMainThreadResource.

description

summary

Plays music using the Music app.

input

The music to be played

usage

playmusic shuffle=("Off" | "Songs") repeat=("None" | "One" | "All")

arguments


shuffle: Enumeration (Docs)

Allows Variables: true

Accepts a string or variable containing one of the options:

  • Off
  • Songs

repeat: Enumeration (Docs)

Allows Variables: true

Accepts a string or variable containing one of the options:

  • None
  • One
  • All

source json (for developers)

{
	"ActionClass": "WFPlayMusicAction",
	"ActionKeywords": [
		"play",
		"song",
		"ipod",
		"track",
		"music",
		"itunes",
		"library"
	],
	"AppIdentifier": "com.apple.Music",
	"Category": "Music",
	"Description": {
		"DescriptionInput": "The music to be played",
		"DescriptionSummary": "Plays music using the Music app."
	},
	"Input": {
		"Multiple": true,
		"Types": [
			"MPMediaItem"
		]
	},
	"InputPassthrough": true,
	"Name": "Play Music",
	"Parameters": [
		{
			"Class": "WFEnumerationParameter",
			"Items": [
				"Off",
				"Songs"
			],
			"Key": "WFPlayMusicActionShuffle",
			"Label": "Shuffle"
		},
		{
			"Class": "WFEnumerationParameter",
			"Items": [
				"None",
				"One",
				"All"
			],
			"Key": "WFPlayMusicActionRepeat",
			"Label": "Repeat"
		}
	],
	"RequiredResources": [
		"WFAppleMusicAccessResource",
		"WFMainThreadResource"
	],
	"Subcategory": "Playback"
}