For macOS 10.15 Catalina and later. Deletes the currently playing track completely from the Music app and moves its file to the Trash. Works for tracks with local files only. Use carefully.
It is not possible to remove cloud tracks with this script.
- Accommodations for macOS 10.15 Catalina
- Performance and security enhancements