Page 1 of 2
About compatibility to software "everything"
Posted: 30 Jun 2021 12:27
by CloudJack
Hi everyone,
I am looking for setting to auto-select the search item opened from everything.
I searched around other website to get setting of script on "everything" that is
Method 1: To use double click on "everything" search item (for folder item only)
$exec("Path\XYPlorer\XYplorer.exe" "%1")
And
Method 2: To use right click "open path" on "everything" search item (for item other than folder, eg pdf, excel, work etc.)
$exec("Path\XYPlorer\XYplorer.exe" "$parent(%1)")
Above both method work to use Xyplorer to open items.
However, for method 2, it cannot auto-select the search item when it is opened from everything.
Then, I resume the default setting of everything and change the system default file manager to Xyplorer.
It is same result as using method 2.
Would anyone can help? (maybe the solution is pending for "Everything" to update their software to get more support on the command script and compatible to other file manager.)
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 12:40
by highend
Code: Select all
$exec("Path\XYPlorer\XYplorer.exe" /feed="::goto '%1'; sel '+0'; focus;")
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 12:46
by Horst
I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.
But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 12:51
by CloudJack
highend wrote: ↑30 Jun 2021 12:40
Code: Select all
$exec("Path\XYPlorer\XYplorer.exe" /feed="::goto '%1'; sel '+0'; focus;")
Is it possible to open the search item in new tab?
Also, where can I get reference to write those script /feed="::goto '%1'; sel '+0'; focus;"
Anyway, this script work!! Thank you

Re: About compatibility to software "everything"
Posted: 30 Jun 2021 13:13
by CloudJack
Horst wrote: ↑30 Jun 2021 12:46
I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.
But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)
Seem my step is wrong.
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 13:49
by highend
Is it possible to open the search item in new tab?
Menu - Go - Go to Application Data Folder
Switch into the "Scripts" subfolder there
Download the .xys attachment and place it there as
Open path via Everything.xys
Use this for Everything:
Code: Select all
$exec("C:\Tools\XYplorer\XYplorer.exe" /feed="::perm $$P_EVERYTHING_FILE = '%1'; load 'Open path via Everything.xys';")
Also, where can I get reference to write those script /feed="::goto '%1'; sel '+0'; focus;"
Menu - Help - Contents and Index
Advanced Topics
Scripting, Scripting Commands Reference, Variables...
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 14:33
by Horst
CloudJack wrote: ↑30 Jun 2021 13:13
Horst wrote: ↑30 Jun 2021 12:46
I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.
But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)
Seem my step is wrong.
I guess you didn't customize the script for your Environment (Path to the Everything dir).
Also you must have the Everything Command-line Interface tool (es.exe) from Everything in the Everything folder
Download it from
https://www.voidtools.com/downloads/.
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 15:32
by CloudJack
highend wrote: ↑30 Jun 2021 13:49
Is it possible to open the search item in new tab?
Menu - Go - Go to Application Data Folder
Switch into the "Scripts" subfolder there
Download the .xys attachment and place it there as
Open path via Everything.xys
Use this for Everything:
Code: Select all
$exec("C:\Tools\XYplorer\XYplorer.exe" /feed="::perm $$P_EVERYTHING_FILE = '%1'; load 'Open path via Everything.xys';")
Also, where can I get reference to write those script /feed="::goto '%1'; sel '+0'; focus;"
Menu - Help - Contents and Index
Advanced Topics
Scripting, Scripting Commands Reference, Variables...
Thank you again!
I modified the script into this:
Open path via Everything.xys
Code: Select all
perm $P_EVERYTHING_FILE;
tab("new", gpc($P_EVERYTHING_FILE, "path"));
foreach($item, $P_EVERYTHING_FILE, <crlf>, , "No files selected!") {
if(getpathcomponent($item, "ext",,4)) {
goto $item;
}
else {
selectitems $item;
selfilter getpathcomponent($item, "name"),4:=1;
}
}
unset $P_EVERYTHING_FILE;
It works for auto-select multiple search item and scroll it into view on each tab.
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 16:27
by CloudJack
I found error if path contain character '
It cannot pass the path into XYplorer for running script.
Re: About compatibility to software "everything"
Posted: 30 Jun 2021 18:49
by highend
Then do it this way
Code: Select all
$exec("C:\Tools\XYplorer\XYplorer.exe" /feed=|::perm $$P_EVERYTHING_FILE = "%1"; load "Open path via Everything.xys";|)
Why are you using a foreach loop?
Everything does not store all selected items in that permanent variable, it does send each selected item one by one via that $exec() call...
Re: About compatibility to software "everything"
Posted: 01 Jul 2021 16:22
by CloudJack
highend wrote: ↑30 Jun 2021 18:49
Then do it this way
Code: Select all
$exec("C:\Tools\XYplorer\XYplorer.exe" /feed=|::perm $$P_EVERYTHING_FILE = "%1"; load "Open path via Everything.xys";|)
It works perfect

.
Why are you using a foreach loop?
Everything does not store all selected items in that permanent variable, it does send each selected item one by one via that $exec() call...
Oh...I am not sure how Everything works so that I assume all selected items stored in one variable.
Re: About compatibility to software "everything"
Posted: 01 Jul 2021 20:02
by CloudJack
Horst wrote: ↑30 Jun 2021 14:33
CloudJack wrote: ↑30 Jun 2021 13:13
Horst wrote: ↑30 Jun 2021 12:46
I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.
But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)
Seem my step is wrong.
I guess you didn't customize the script for your Environment (Path to the Everything dir).
Also you must have the Everything Command-line Interface tool (es.exe) from Everything in the Everything folder
Download it from
https://www.voidtools.com/downloads/.
I figure it out and it works to search file in XYplorer with everything ES.exe
But it seem this method not supporting Chinese character in searching result.
For example, a pdf file is named 一二三.pdf.
I search ".pdf" on the script. The result cannot show the pdf file.
Then, I search "一二三" instead. The result shows the pdf file. However, the result type is "PDF" but "PDF document"
To more explain, if pdf file is named "abc.pdf". The result type will show "PDF document".
Re: About compatibility to software "everything"
Posted: 01 Jul 2021 22:32
by Horst
CloudJack wrote: ↑01 Jul 2021 20:02
Horst wrote: ↑30 Jun 2021 14:33
CloudJack wrote: ↑30 Jun 2021 13:13
Horst wrote: ↑30 Jun 2021 12:46
I use the following for Explore path in Everything
$exec("C:\Tools\XYplorer\XYplorer.exe" "%1")
This also selects the item if used on a file in the Everything results.
But my normal usage is to search from inside of XYplorer and get the results in a Paper folder.
This script can search for names left mouse or content right mouse on a user defined button with (using the Everything 1.5 for content).
Everything.xys
I am not sure how to use script file on XYplorer. When I load the script and input search file name, nothing is on paper folder. (using Everything 1.4.1.1009)
Seem my step is wrong.
I guess you didn't customize the script for your Environment (Path to the Everything dir).
Also you must have the Everything Command-line Interface tool (es.exe) from Everything in the Everything folder
Download it from
https://www.voidtools.com/downloads/.
I figure it out and it works to search file in XYplorer with everything ES.exe
But it seem this method not supporting Chinese character in searching result.
For example, a pdf file is named 一二三.pdf.
I search ".pdf" on the script. The result cannot show the pdf file.
Then, I search "一二三" instead. The result shows the pdf file. However, the result type is "PDF" but "PDF document"
To more explain, if pdf file is named "abc.pdf". The result type will show "PDF document".
My script is a stripped down version of much better scripts which also handle unicode.
Have a look on this thread
viewtopic.php?f=7&t=12054
Re: About compatibility to software "everything"
Posted: 02 Jul 2021 01:42
by RalphM
Is there anything to be gained by fully quoting the last post in a thread?
No, it's just a waste of space!
Re: About compatibility to software "everything"
Posted: 03 Jul 2021 12:17
by highend
Try my current (personal!) version...
On my system it finds files with e.g. "漢字" in it just fine...
It has a few additional switches as well (things that I use very often):
Code: Select all
d: = Only directories
f: = Only files
c: = content:<search term>
l: = Search only in current XY's path
Everything_v0.3.xys