Page 1 of 1

How do i add scripts (xys) in catalog?

Posted: 25 May 2009 16:53
by stanmarsh
Hello everyone,

im having some problem adding scripts in the catalog, there is no option in the catalog that suggest adding scripts, i also tried dragging it but it copies the xys file.

thanks

Re: How do i add scripts (xys) in catalog?

Posted: 25 May 2009 17:09
by serendipity
stanmarsh wrote:Hello everyone,

im having some problem adding scripts in the catalog, there is no option in the catalog that suggest adding scripts, i also tried dragging it but it copies the xys file.

thanks
Yes, after you drag the file in the catalog, right click and go to properties and in the location field edit in the following way. The syntax is:
load "file path and name";

for example if you have a script called myscripts.xys in XYplorers script folder then the location field should look like this:
load "C:\Program files\XYplorer\Scripts\myscripts.xys";

read more from the below link:
http://88.191.26.34/XYwiki/index.php/Catalog#Run_Script

Re: How do i add scripts (xys) in catalog?

Posted: 25 May 2009 17:39
by carmenm
you must enter "::load ..." and not "load..."

Re: How do i add scripts (xys) in catalog?

Posted: 25 May 2009 18:03
by serendipity
carmenm wrote:you must enter "::load ..." and not "load..."
Yes, for those who dont have this tweak (Tweak: set to 1 to detect script in AB without ::) enabled, you have to use :: before load. I am sorry to not have mentioned that in the first place.

Re: How do i add scripts (xys) in catalog?

Posted: 26 May 2009 01:50
by stanmarsh
thank you serendipity and carmenm for the help, i was able to run the scripts from the catalog! :D

Re: How do i add scripts (xys) in catalog?

Posted: 26 May 2009 06:16
by admin
stanmarsh wrote:thank you serendipity and carmenm for the help, i was able to run the scripts from the catalog! :D
Where would you have expected information about this? (I'm trying to improve GUI/Help...)

Re: How do i add scripts (xys) in catalog?

Posted: 26 May 2009 10:32
by carmenm
Personally i think that when you do properties->edit location ...
There should be a button to load script which would add the line
::load script.xys;

or even easier add an action on click for load xys.

Re: How do i add scripts (xys) in catalog?

Posted: 26 May 2009 17:46
by stanmarsh
i have the same idea as carmenm, i was expecting it to be on the edit item properties while im adding a new file or after i added the file. Or in the insert new item here.

i found something unexpected, while searching for the answer in the xyplorer help guide, the code: xys>::load <curitem>, i read this in the help guide, and used it in customized file association, i only used one script, and used it on different filetypes, like txt (shows the text inside), rar (freeze xyplorer if its big), exe (shows text).

heres what i did.
1.zer0's remove extension.xys code
"Remove Extension" rename e;
2. customized file association - new - xys>::load <curitem>
3. drag remove extension.xys to catalog
4. properties set to - open item
5. select any file
6. click on remove extension.sys on catalog
7. see pop-up text