Trying to link a search template to the catalog

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Andarras
Posts: 10
Joined: 23 Apr 2018 09:48

Trying to link a search template to the catalog

Post 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!

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Trying to link a search template to the catalog

Post 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
One of my scripts helped you out? Please donate via Paypal

Andarras
Posts: 10
Joined: 23 Apr 2018 09:48

Re: Trying to link a search template to the catalog

Post 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).

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Trying to link a search template to the catalog

Post by highend »

Ofc it's a file

Put this in the address bar and hit {ENTER} afterwards:
<xydata>\FindTemplates\Audio_Library.ini
One of my scripts helped you out? Please donate via Paypal

Andarras
Posts: 10
Joined: 23 Apr 2018 09:48

Re: Trying to link a search template to the catalog

Post 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.
To see the attached files, you need to log into the forum.

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Trying to link a search template to the catalog

Post by highend »

At last, a screenshot of the properties of your belonging catalog entry

Right click it, "Properties" from the context menu
One of my scripts helped you out? Please donate via Paypal

Andarras
Posts: 10
Joined: 23 Apr 2018 09:48

Re: Trying to link a search template to the catalog

Post 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!

highend
Posts: 15004
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Trying to link a search template to the catalog

Post by highend »

You're executing a script, it can't be a search category in the catalog :mrgreen:
One of my scripts helped you out? Please donate via Paypal

Post Reply