Basic Catalog scripting issue

Discuss and share scripts and script files...
Post Reply
kaldrenon
Posts: 2
Joined: 06 Jul 2021 21:08

Basic Catalog scripting issue

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

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

Re: Basic Catalog scripting issue

Post by highend »

Code: Select all

moveto "C:\Users\kaldr\folder", <get SelectedItemsPathNames>;
One of my scripts helped you out? Please donate via Paypal

kaldrenon
Posts: 2
Joined: 06 Jul 2021 21:08

Re: Basic Catalog scripting issue

Post by kaldrenon »

Thank you! I knew it would be something relatively simple.

Post Reply