Possible issue about copyas conflicts with selectitems???

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
qwerty
Posts: 45
Joined: 03 Apr 2018 15:59

Possible issue about copyas conflicts with selectitems???

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

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

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

Post by highend »

copyas doesn't wait -> everything after it is executed immediately

setting "BackgroundFileOps", 0;
One of my scripts helped you out? Please donate via Paypal

qwerty
Posts: 45
Joined: 03 Apr 2018 15:59

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

Post by qwerty »

@highend, thanks for your help. :appl:

Post Reply