Page 1 of 1

Trying to link a search template to the catalog

Posted: 23 Apr 2018 09:56
by Andarras
Hi all,

I found the following script:

Code: Select all

::loadsearch('Audio_Library','rle');
My search template is called 'Audio_Library' as referenced above. In the search template screen I've ticked the R, L, E options. The search is set to search in a specific folder where all my MP3's go. The direct search works, but it always searches my whole PC when I run the script above via the catalog.

Any advice?

Thanks!

Re: Trying to link a search template to the catalog

Posted: 23 Apr 2018 10:42
by highend
In the search template screen I've ticked the R, L, E options
- Screenshot please

Additionally
- Where exactly is your MP3 folder located (full path)
- Show the content of the Audio_Library file

Re: Trying to link a search template to the catalog

Posted: 23 Apr 2018 10:46
by Andarras
It's not a file. It's a search template. And that works perfectly. It's literally the script that refuses to search in the location specified on the template (which is the location that is searched when run directly from the template).

Re: Trying to link a search template to the catalog

Posted: 23 Apr 2018 10:48
by highend
Ofc it's a file

Put this in the address bar and hit {ENTER} afterwards:
<xydata>\FindTemplates\Audio_Library.ini

Re: Trying to link a search template to the catalog

Posted: 23 Apr 2018 11:38
by Andarras
; XYplorer 18.90.0100 configuration file: search template
; Windows 10, 64-bit
; 2018-04-23 17:46:51

[Find]
Version=3
Mode=0
FullPath=0
Case=0
InclSubs=1
Inverted=0
FollowFolderLinks=0
SelectedLocations=0
WholeWords=0
AutoSync=1
IgnoreDiacritics=1
TypeFilter=4
RangeNot=0
StartOfUnit=0
SizeFolders=1
Date=1
DateRange=0
DateNum="1"
DateUnit=3
DateFrom=""
DateTo=""
LeaveEmpty=0
SizeMin=""
SizeMax=""
SizeUnit=1
AttrFindCheck=0
AttrFindNotCheck=0
TagsLabelsText=
TagsTagsText=Movie
TagsCommentText=
TagsLabels=0
TagsTags=1
TagsComment=0
TagsSearchEverywhere=0
ContText=
CaseSens=0
Hex=0
ContTextInvert=0
ContMode=0
ContType=0
DupesName=1
DupesDate=1
DupesSize=1
DupesContent=1
DupesInvert=0
DupeComparison=1
DupeExtension=0
Mind0=1
Mind1=0
Mind2=0
Mind3=0
Mind4=0
Mind5=0
Mind6=0
Mind7=1

[ExcludeFolders2]
Count=2
1=file:sub
2=file:.nfo

[Named]
Named="*"

[LookIn]
LookIn="H:\LIBRARIES\AUDIO LIBRARY"
Screenshot attached. Note that the search as above works perfectly from the Search Template list. It searches from the folder specified in the script above. It's the loadsearch script that searches everything.

Re: Trying to link a search template to the catalog

Posted: 23 Apr 2018 11:46
by highend
At last, a screenshot of the properties of your belonging catalog entry

Right click it, "Properties" from the context menu

Re: Trying to link a search template to the catalog

Posted: 23 Apr 2018 11:52
by Andarras
Thanks highend. I recreated the Category and voila, now I seem to have more options for my items. I assumed because I was 'searching' that it should have been a click and search. By not ticking that option I get the 'go to' option.

Thanks for your help!

Re: Trying to link a search template to the catalog

Posted: 23 Apr 2018 11:59
by highend
You're executing a script, it can't be a search category in the catalog :mrgreen: