Apple Music Discord Rich Presence integration for macOS.
- Prevent script fail if discord isn't opened (needs debugging)
- Add a config file
- Allow to show paused state instead of removing the activity altogether
- Python 3.13+
- uv package manager
- macOS
- Discord
Run the setup script:
chmod +x setup.sh
./setup.sh
This will:
- Install the package using
uv tool install -e .
- Copy the launch agent plist file to
$HOME/Library/LaunchAgents/
- Load the launch agent with
launchctl
The service will start automatically and run in the background.
If you prefer to install manually:
# Install the package
uv tool install -e .
# Copy the plist file
cp com.user.apple-music-discord.plist $HOME/Library/LaunchAgents/
# Load the launch agent
launchctl load $HOME/Library/LaunchAgents/com.user.apple-music-discord.plist
The service runs automatically in the background once installed. It will display your currently playing Apple Music track as Discord rich presence.
Check the logs for troubleshooting:
- Standard output:
/tmp/apple-music-discord.log
- Error output:
/tmp/apple-music-discord-error.log
To stop and remove the service:
# Unload the launch agent
launchctl unload $HOME/Library/LaunchAgents/com.user.apple-music-discord.plist
# Remove the plist file
rm $HOME/Library/LaunchAgents/com.user.apple-music-discord.plist
# Uninstall the package
uv tool uninstall apple-music-discord