Page 1 of 1

Missing Code For My Script

Posted: 08 Dec 2018 17:55
by thebib62
rename b, "History_English";
rename b, "History_Chinese";

I want to select 2 files, and run this script. it should name each file respectively, all with 1 click.
what needs to be added to the script in order for that to happen?

Re: Missing Code For My Script

Posted: 08 Dec 2018 18:19
by highend

Code: Select all

    $items = <get SelectedItemsPathNames |>;
    renameitem("History_English", gettoken($items, 1, "|"));
    renameitem("History_Chinese", gettoken($items, 2, "|"));

Re: Missing Code For My Script

Posted: 08 Dec 2018 18:28
by thebib62
Huge thanks for your help! Your quick reply is much appreciated too!