Clawtunes Play
by @skaravind
Play Apple Music songs on macOS using clawtunes, including streaming catalog tracks via a practical keyboard-navigation workaround after opening the song in...
clawhub install clawtunes-playπ About This Skill
name: clawtunes-play description: Play Apple Music songs on macOS using clawtunes, including streaming catalog tracks via a practical keyboard-navigation workaround after opening the song in Music. Use when the user asks to play a song, artist, album, playlist, or mood in Apple Music and normal AppleScript/library playback is not enough. Works with the Mac Apple Music app plus online catalog search/play.
Clawtunes Play
Use clawtunes as the first choice for Apple Music control on this Mac.
Workflow
1. For library items, try direct playback first.
2. For songs likely not in the library, search the Apple Music catalog and open the selected result in Music.
3. For catalog playback, prefer the wrapper script that tries the best-known keyboard sequence automatically:
- Tab + Tab + Enter
- fallback: Tab + Enter
- fallback: Shift-Tab + Enter
4. Check whether playback actually changed to the requested song.
5. If playback did not switch, say so plainly.
Commands
clawtunes_play --song ""
catalog_play ""
clawtunes_play --status
catalog_play_experiment "" --index 1 --strategy tab-tab-enter Requirements
This skill assumes these local tools are available on macOS:
clawtunespython3osascriptopenIt also needs macOS Accessibility / Automation permission so System Events can send keyboard input to Music.
Install / Use
skills/clawtunes-playclawtunes_play, catalog_play, catalog_play_experimentscripts/catalog_play_wrapper.shNotes
clawtunes play song targets library playback.clawtunes catalog search opens the streaming result in Music, but Music may not autoplay unless the UI focus lands correctly.π Tips & Best Practices
clawtunes play song targets library playback.clawtunes catalog search opens the streaming result in Music, but Music may not autoplay unless the UI focus lands correctly.