Page 1 of 1

Rename based on clipboard content

Posted: 2022-07-05 11:39:51
by rs232
Analyze this:

Say I have a movie folder (movie legally owned of course) and I want to fetch from imdb the original title.
I go to IMDB I copy the original title in the clipboard.

I have my scripts that change characters, put dates in between square brackets etc, they are called via context menu however to add the original title I always have to right click -> Rename, add round brackets, past the clipboard within, etc.

At this point it would also be great to have the possibility via the same antrenamer scriopt to rename the file/folder in question using information from the clipboard content.


So essentially automating something like:

LOST ILLUSION 2021

into

Lost Illusions (Illusions perdues) [2021]

(the part in bold is the one I can't currently automate as it's information held in the clipboard at the moment when the context_menu-->antrenamer_script is called.

Thanks

Re: Rename based on clipboard content

Posted: 2022-07-07 09:59:40
by antp
That's a rather specific task. It is not much bulk-processing as originally intended by Ant Renamer.
For such specific uses there should be other ways to achieve it.
A few years ago, VBScript was good for that. I suppose that nowadays it is replaced by Powershell: using it you can easily make the commands that you want and access the clipboard when the script runs.