Control Spotify playback on macOS. Play/pause, skip tracks, control volume, play artists/albums/playlists. Use when a user asks to play music, control Spotify, change songs, or adjust Spotify volume.
Control Spotify on macOS. No API key required.
```bash
spotify play # Resume
spotify pause # Pause/toggle
spotify next # Next track
spotify prev # Previous track
spotify stop # Stop
spotify vol up # +10%
spotify vol down # -10%
spotify vol 50 # Set to 50%
spotify status # Current track info
```
1. Search web for Spotify URL: `"Daft Punk" site:open.spotify.com`
2. Get ID from URL: `open.spotify.com/artist/4tZwfgrHOc3mvqYlEYSvVi` → ID is `4tZwfgrHOc3mvqYlEYSvVi`
3. Play with AppleScript:
```bash
osascript -e 'tell application "Spotify" to play track "spotify:artist:4tZwfgrHOc3mvqYlEYSvVi"'
osascript -e 'tell application "Spotify" to play track "spotify:album:4m2880jivSbbyEGAKfITCa"'
osascript -e 'tell application "Spotify" to play track "spotify:track:2KHRENHQzTIQ001nlP9Gdc"'
```
Leave a review
No reviews yet. Be the first to review this skill!