Page 1 of 1

Script to copy filename into Comment field

Posted: 17 Apr 2021 14:14
by mrbosco
I'd like a script to copy the file name from selected files into the associated comment field.
That way I can modify the actual filename while the comment field will remember the original filename.
Is this possible?

Re: Script to copy filename into Comment field

Posted: 17 Apr 2021 14:23
by highend

Code: Select all

    foreach($item, <get SelectedItemsPathNames |>, , "e") {
        tag gpc($item, "file"), $item, 2, 1;
    }

Re: Script to copy filename into Comment field

Posted: 17 Apr 2021 15:23
by mrbosco
Perfect!
Thank you!!!