Hi
I would like to change the filename of all the covers in my collection, replacing it with the filename of the video.
So, if I have this video:
Groundhog Day [HDrip][Dual].mkv
, the filename of the cover would change from films_1234.jpg to Groundhog Day [HDrip][Dual].jpg
And, if possible, I would like to move the cover to the folder where the video is placed.
Is this possible?
Thanks
Change filename of covers
Technically it even should be possible to use AMC's scripting engine for that job, but it would need a complete new script.
You can use the file operations in scripting engine to load a catalog file in xml format (not "open" a catalog via menu) and copy it to a TStringList variable, then read the (relative) paths to pictures, use CopyFile to copy pictures to new filenames (preferably to a new folder, just to avoid any file conflicts) and finally change the path and filenames in the xml file. I did some similar file operations in the first versions of update_script, I think.
Still it isn't possible to do this modifications to the catalog if you just open it in AMC.
You can use the file operations in scripting engine to load a catalog file in xml format (not "open" a catalog via menu) and copy it to a TStringList variable, then read the (relative) paths to pictures, use CopyFile to copy pictures to new filenames (preferably to a new folder, just to avoid any file conflicts) and finally change the path and filenames in the xml file. I did some similar file operations in the first versions of update_script, I think.
Still it isn't possible to do this modifications to the catalog if you just open it in AMC.
Yes but that falls under what I said:bad4u wrote:Technically it even should be possible to use AMC's scripting engine for that job, but it would need a complete new script.
Code: Select all
make an external tool (using any programming language)

