Page 1 of 1

Possible issue about copyas conflicts with selectitems???

Posted: 12 Jul 2021 20:10
by qwerty
I create a script about duplicating the selected files with incremental names, and then select the items back.

Code: Select all

    $selitems = get("SelectedItemsNames", "|");
    copyas "*.?";
    //echo $selitems;
    selectitems $selitems;
Without echo $selitems(i.e. comment it), it duplicates the selected items successfully and selects the duplicated item, but won't select the previous items back. If uncomment echo, it works for selectitems after copyas. Anyone could please tell me why is it? Thanks.

Re: Possible issue about copyas conflicts with selectitems???

Posted: 12 Jul 2021 20:14
by highend
copyas doesn't wait -> everything after it is executed immediately

setting "BackgroundFileOps", 0;

Re: Possible issue about copyas conflicts with selectitems???

Posted: 12 Jul 2021 21:35
by qwerty
@highend, thanks for your help. :appl: