Can catalog items run scripts-multiple scripts?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Can catalog items run scripts-multiple scripts?

Post by kartal »

Hi
I am wondering if it is possible to assign or add script-multiple scripts to catalog items. Catalog is very convenient place have all the favorite scripts,better than user scripts. At least one can organize them if it is possible to run scripts.

admin
Site Admin
Posts: 66258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Can catalog items run scripts-multiple scripts?

Post by admin »

kartal wrote:Hi
I am wondering if it is possible to assign or add script-multiple scripts to catalog items. Catalog is very convenient place have all the favorite scripts,better than user scripts. At least one can organize them if it is possible to run scripts.
Yes, easily! Either like this (use Edit button in Catalog Item properties to enter multi-line script):

Code: Select all

"Super Reviews"
  moveto "D:\Archives\Reviews\Super"
"Good Reviews"
  moveto "D:\Archives\Reviews\Good"
"Completely Uninspired Trash (CUT)"
  moveto "D:\Archives\Reviews\Bad"
Or simply load a XYS file using ::load command.

kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Re: Can catalog items run scripts-multiple scripts?

Post by kartal »

thanks for the info. I guess your second suggestion is the one I was looking for for. Basically what I need is that when I open a folder, I want xyplorer to perform multiple operations. So clicking a catalog item could trigger-invoke multiple commands like copy, move, thumbnail mode etc.
;

Your first suggestiion is very useful too, but for different occasions.

kartal
Posts: 208
Joined: 14 Aug 2008 18:06

Re: Can catalog items run scripts-multiple scripts?

Post by kartal »

I have just tried this in catalog and I cannot make it work under catalog item. I use "open item" and in the item line I have
"load C:\XYplorer\Scripts\date.xys"
When I click the catolog item it does not do anything
admin wrote:
kartal wrote:Hi


Or simply load a XYS file using ::load command.

admin
Site Admin
Posts: 66258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Can catalog items run scripts-multiple scripts?

Post by admin »

kartal wrote:I have just tried this in catalog and I cannot make it work under catalog item. I use "open item" and in the item line I have
"load C:\XYplorer\Scripts\date.xys"
When I click the catolog item it does not do anything
admin wrote:
kartal wrote:Hi


Or simply load a XYS file using ::load command.
(1) use Goto Location (not open item)
(2) Location = ::load "C:\XYplorer\Scripts\date.xys" (mind the :: and the quotes!)

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Can catalog items run scripts-multiple scripts?

Post by jacky »

admin wrote:(2) Location = ::load "C:\XYplorer\Scripts\date.xys" (mind the :: and the quotes!)
Yeah, and for portability sake, plus it's easier ;), if C:\XYplorer is the application data path, a simple ::load "date" is enough (and doesn't even require the quotes) !
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Can catalog items run scripts-multiple scripts?

Post by admin »

jacky wrote:
admin wrote:(2) Location = ::load "C:\XYplorer\Scripts\date.xys" (mind the :: and the quotes!)
Yeah, and for portability sake, plus it's easier ;), if C:\XYplorer is the application data path, a simple ::load "date" is enough (and doesn't even require the quotes) !
What an app! :D

Post Reply