Page 1 of 1

Basic Catalog scripting issue

Posted: 06 Jul 2021 21:14
by kaldrenon
Hey all,

I suspect I'm making a rookie error here, but I've read over https://www.xyplorer.com/tour.php?page=catalog and https://www.xyplorer.com/tour.php?page=scripting and I'm not able to find what I'm doing wrong.

I added a simple script item to a Catalog, and the Location field in that item is just

Code: Select all

::moveto "C:\Users\kaldr\folder"
- with the path copied directly from the path bar

When I select some files and click that catalog item, the error message I get is "Nothing selected, or what is selected cannot be moved."

How do I create a Catalog item that moves currently selected files to a hardcoded path?

Re: Basic Catalog scripting issue

Posted: 06 Jul 2021 21:22
by highend

Code: Select all

moveto "C:\Users\kaldr\folder", <get SelectedItemsPathNames>;

Re: Basic Catalog scripting issue

Posted: 06 Jul 2021 22:08
by kaldrenon
Thank you! I knew it would be something relatively simple.