I'm working on scripting a means of renaming my digital movies collection. I'm fairly new to the scripting functionality and need some help getting my filenames renamed a certain way. I need the filenames formatted like so:
%title% [%year%]
There are a couple of hurtles to overcome though. I need the script to change the filename to the embedded title first, then I need it to add the year in brackets ([%year%]) if the year is not already present in the filename. I can get a script that renames the filename to the title and another to add the year, but I need them both done simultaneously. I also need to know how character escaping works in Mp3Tag as I cannot get the brackets to appear around the year in the filename and I need the title to overwrite the original filename as it seems to keep the original filename in addition to adding the title name.
Here is the script I have had the best luck with so far:
