Music Switcher selects Apple Music tracks for what you are doing on your Mac. It supports five activity categories: work/study, creativity, deep thinking, relaxation, and intense.
Pass the Apple Music playlist name supplied by the frontend as the first argument. The playlist is indexed into the five categories before playback:
python3 playMusicofGenre.py "happy"
To build or refresh only the local category index:
python3 Sync_library.py "happy"
Playlist names are passed to Apple Music as arguments rather than inserted into AppleScript, so names containing quotes and other punctuation are safe.
macOS may ask for Automation permission to control Music and Accessibility
Music Switcher selects Apple Music tracks for what you are doing on your Mac. It supports five activity categories: work/study, creativity, deep thinking, relaxation, and intense.
Pass the Apple Music playlist name supplied by the frontend as the first argument. The playlist is indexed into the five categories before playback:
python3 playMusicofGenre.py "happy"
To build or refresh only the local category index:
python3 Sync_library.py "happy"
Playlist names are passed to Apple Music as arguments rather than inserted into AppleScript, so names containing quotes and other punctuation are safe.
macOS may ask for Automation permission to control Music and Accessibility