Just adding the new LoadSearch command to scripting!
Question: Never using Search Templates myself I wondered whether "SelectedLocations" and "AutoSync" really should be stored with the search template??? I'd think NOT! What do you think?
Apart from that: very cool command! You now can e.g. list any 2 directories in one list on a single click by loadsearching a template with 2 search locations. And much more...
script to execute specific search
-
- Site Admin
- Posts: 60538
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re:
FAQ | XY News RSS | XY Twitter
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Re:
What is your reasoning for this? Before I answer the question, I'd like to know as I thought the concept of having a template was to be able to repeat a search as it was configured before.admin wrote:Question: Never using Search Templates myself I wondered whether "SelectedLocations" and "AutoSync" really should be stored with the search template??? I'd think NOT! What do you think?
Now admittedly, I use templates only rarely so I may not be a good sample for this 'survey', but wanted to try anyway.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
- Site Admin
- Posts: 60538
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Re:
reasoning: both are not properties of a search but settings that control how/if the location field is automatically filled. In a stored search this makes no sense since the location is stored with the search.j_c_hallgren wrote:What is your reasoning for this? Before I answer the question, I'd like to know as I thought the concept of having a template was to be able to repeat a search as it was configured before.admin wrote:Question: Never using Search Templates myself I wondered whether "SelectedLocations" and "AutoSync" really should be stored with the search template??? I'd think NOT! What do you think?
SelectedLocations might be okay if you load a template without loading the stored location. But AutoSync is useless because it only makes sense in relation to browsing to new locations.
But somebody should reply who actually uses templates...
FAQ | XY News RSS | XY Twitter
-
- XY Blog Master
- Posts: 5824
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Re: Re:
I said I use them, just not that often!admin wrote:SelectedLocations might be okay if you load a template without loading the stored location. But AutoSync is useless because it only makes sense in relation to browsing to new locations.
But somebody should reply who actually uses templates...
Anyway, that's what I was thinking also...I agree that AutoSync makes no sense, ,but that Selected Locations could affect results if one thought it was being saved as part of Template and it wasn't.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
Re: Re:
hmm.. I do use them, though not daily, and I could see where the question comes from, though I would say that it could be odd that only those two options are excluded from ST, some people could actually have a ST that enabled "Selected locations" because one always selects a bunch of folders/drives and loads the ST to search them. I know I don't, but it could be done.admin wrote:Question: Never using Search Templates myself I wondered whether "SelectedLocations" and "AutoSync" really should be stored with the search template??? I'd think NOT! What do you think?
For "Auto sync" it could seems totally useless, but consider this case: you load a search template with auto sync ON, while it currently if OFF, then it you don't load the search location (one of the option available on loading) the search location is set to the current one.
So, for someone who doesn't load the search location and doesn't usually uses auto-sync, it could have a point.
And since there's no way to start a search by fully defining the criteria from a script command, might be good to let ST access all the available options, no?
PS: Okay, so ::loadsearch doesn't work (yeah I tried ) but gave the same error as ::info or any not existing command -- isn't that one (info) a real command, giving version number, loaded INI, command line, <xypath>, <xydata>, etc ??
Proud XYplorer Fanatic
-
- Site Admin
- Posts: 60538
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Re:
Yes, it was a little glitchy today. Try again in next upload.jacky wrote:PS: Okay, so ::loadsearch doesn't work (yeah I tried ) but gave the same error as ::info or any not existing command -- isn't that one (info) a real command, giving version number, loaded INI, command line, <xypath>, <xydata>, etc ??
Hint:
Code: Select all
' syntax: loadsearch template, [options=rl]
' template: search template name
' as displayed in the search template dialog
' options: r = run search
' l = load search location
' e = load excluded folders
' ::loadsearch "Created or Modified This Hour", r
FAQ | XY News RSS | XY Twitter