Script to copy filename into Comment field

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
mrbosco
Posts: 125
Joined: 03 Sep 2011 09:40

Script to copy filename into Comment field

Post 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?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Script to copy filename into Comment field

Post by highend »

Code: Select all

    foreach($item, <get SelectedItemsPathNames |>, , "e") {
        tag gpc($item, "file"), $item, 2, 1;
    }
One of my scripts helped you out? Please donate via Paypal

mrbosco
Posts: 125
Joined: 03 Sep 2011 09:40

Re: Script to copy filename into Comment field

Post by mrbosco »

Perfect!
Thank you!!!

Post Reply