Page 1 of 1

Can catalog items run scripts-multiple scripts?

Posted: 31 Aug 2008 04:33
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.

Re: Can catalog items run scripts-multiple scripts?

Posted: 31 Aug 2008 12:40
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.

Re: Can catalog items run scripts-multiple scripts?

Posted: 31 Aug 2008 21:14
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.

Re: Can catalog items run scripts-multiple scripts?

Posted: 02 Sep 2008 21:07
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.

Re: Can catalog items run scripts-multiple scripts?

Posted: 02 Sep 2008 21:20
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!)

Re: Can catalog items run scripts-multiple scripts?

Posted: 02 Sep 2008 21:48
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) !

Re: Can catalog items run scripts-multiple scripts?

Posted: 02 Sep 2008 21:51
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