Page 1 of 1
Highlighting directories and files with text file selector
Posted: 24 Apr 2015 21:59
by CompSystems
Hi, sorry for my bad English
I'm looking for the following
I wish a script file that read on a directory a file (highlighter_list.txt), and then mark or highlight the directories or files based on list containing in highlighter_list.txt
The idea is to organize directories and scroll those who are ready
thanks
Re: highlighting directories via a text file
Posted: 24 Apr 2015 22:53
by highend
Topic was moved...
Answer:
Code: Select all
selectitems regexreplace(readfile("highlighter_list.txt"), "\r?\n", "|"), , 1, "n";
Where highlighter_list.txt is in the current directory. Otherwise change it to one with a full path.
Re: highlighting directories via a text file
Posted: 25 Apr 2015 00:33
by CompSystems
Thanks, but I tried it and does nothing

Scripting menu/ try script ...
If the current folder has the following files
-------------------
c.txt
b.txt
a.txt
1.txt
highlighter_list.txt
------------------
and the file highlighter_list.txt contains the following list
1.txt
b.txt
then you should highlight those files (1.txt, b.txt)
Thanks
Re: highlighting directories via a text file
Posted: 25 Apr 2015 00:51
by PeterH
Had a look...
It highlites the files by selecting them.
The files must be displayed in active list pane & tab when executing script.
Tested with 5 files, with 2 names in highlighter_list.txt.
(Check the names...)
Re: highlighting directories via a text file
Posted: 25 Apr 2015 04:24
by CompSystems
ok, it works well

, it is possible that only highlight without mark []
Re: Highlighting directories and files with text file select
Posted: 25 Apr 2015 05:39
by highend
You mean: Do not change the focus of the current file? Replace the 1 with a 0...