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
How do i add scripts (xys) in catalog?
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How do i add scripts (xys) in catalog?
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: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
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
-
carmenm
Re: How do i add scripts (xys) in catalog?
you must enter "::load ..." and not "load..."
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How do i add scripts (xys) in catalog?
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.carmenm wrote:you must enter "::load ..." and not "load..."
-
stanmarsh
- Posts: 85
- Joined: 10 Mar 2009 07:43
Re: How do i add scripts (xys) in catalog?
thank you serendipity and carmenm for the help, i was able to run the scripts from the catalog! 
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: How do i add scripts (xys) in catalog?
Where would you have expected information about this? (I'm trying to improve GUI/Help...)stanmarsh wrote:thank you serendipity and carmenm for the help, i was able to run the scripts from the catalog!
FAQ | XY News RSS | XY X
-
carmenm
Re: How do i add scripts (xys) in catalog?
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.
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.
-
stanmarsh
- Posts: 85
- Joined: 10 Mar 2009 07:43
Re: How do i add scripts (xys) in catalog?
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
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
XYplorer Beta Club