UPDATED: Convert and Export v6.0
For macOS 10.15 and later only. This script converts the files of the selected tracks in the Music app using an encoder chosen on-the-fly (restoring your Preferences-set encoder afterwards). The newly converted files are then moved to a new location of your choice, and their tracks removed from Music. The read me doc contains additional important information.
Latest version:
- Accommodations for macOS 12 Monterey
More information for Convert and Export v6.0 and download link is here.