Prune Artist Name from Track Name in Song Metadata
I have a quite a few songs from an older hard drive that have the artist name contained in the song name after a dash. After poking around Dougs scripts and searching this forum I can't quite find a script that searches for one conditional metadata attribute within another. In this case "- [artist name here]" within song name. Any help would be awesome. Hoping to get something in my menu bar after dropping into my Music's ascriptions folder.
Current Song Metadata:
Song Name: "Like a Rolling Stone - Bob Dylan"
Artist Name: "Bob Dylan"
Preferred Song Metadata:
Song Name: "Like a Rolling Stone"
Artist Name: "Bob Dylan"
MacBook Pro 13″, macOS 12.7