I’m a noob at scripting, but I was wondering if anyone could help me come up with a script regarding classical music. I’m trying to batch rename the metadata of a set of tracks so the existing title is prefixed with the composer’s last name, followed by a colon and a space, as in:
For example, say the original metadata title was something like this:
Hungarian Rhapsody No. 2 in C sharp minor
With the composer of the work being Franz Liszt, the idea is to append his last name in front of the existing title, if the original title didn’t include it:
Liszt: Hungarian Rhapsody No. 2 in C sharp minor
I’ve thought of some pseudocode to potentially implement this:
If composer’s last name is not already present in the title,
Then append composer’s last name before title, followed by a colon and a space.
If anyone might know a way to translate this to a script, I’d really appreciate it! I have many thousands of classical tracks in my digital library, and most of them exclude the composer’s name from the title, which makes it hard to determine the composer of the piece when skimming through the titles.
Thank you so much in advance!