Music Management Scripts
All your music automation scripts in one place. Copy, download, and run them directly.
Scanning & Indexing
Music File Scanner (Full Scan)
PythonInitial scan of your music directory. Scans all music files and imports metadata into MongoDB. Use this for the first scan or complete rebuild.
Install dependencies:
pip3 install pymongo mutagenUsage:
python3 music_scanner.pyMusic File Scanner (Sync Mode)
PythonFast incremental sync. Only processes new, modified, or deleted files. Use this for daily updates after initial scan. Much faster than full scan.
Install dependencies:
pip3 install pymongo mutagenUsage:
python3 music_scanner_sync.pyMusic File Scanner
PythonScans your music directory and imports all metadata into MongoDB. Used to populate the My Music database.
Install dependencies:
pip3 install pymongo mutagenUsage:
python3 music_scanner.pyTag Management
Remove ID3 Tags (Auto-Generated)
BashRemove album, genre, or title tags from selected music files. Generated automatically from My Music page based on your filters.
Install dependencies:
brew install id3v2 atomicparsley flacUsage:
Generated via "Generate Tag Cleanup" button in My MusicOrganization
Rename ALAC Folders
PythonFinds folders containing predominantly ALAC files (.m4a) that have "FLAC" in their name and renames them to use "ALAC" instead. Shows preview before renaming.
Usage:
python3 rename_alac_folders.py [path] [min_percentage]Find FLAC-Only Folders
PythonScans your music library and returns folder paths that contain ONLY FLAC files (no MP3, M4A, etc. mixed in)
Usage:
python3 find_flac_folders.py [optional_path]Import & Export
Add to Apple Music (Auto-Generated)
Bash + AppleScriptBulk import selected files into Apple Music using AppleScript. Generated automatically from My Music page.
Usage:
Generated via "Add to Apple Music" button in My MusicQuick Tips
- • Make scripts executable:
chmod +x script.py - • Run Python scripts:
python3 script.py - • Run Bash scripts:
./script.sh - • Install Homebrew (if needed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"