You mean the software will detect it?
What are you expecting the script to do?
Out of the box, it looks like it colors tabs for normal folders based on the types of files in them. Your screenshot shows two empty collections, so I'm not sure if the script would do anything for those.
Go to Preferences > Scripts and left click on the TabHighlightColor script name. The "Edit Configuration for 'TabHighlightColor'" dialog should appear:
The first choice, Category, determines whether the script will look for an Extension or FileTypeGroup.
If Category is set for Extension, then it will look for the extension entered in the Extension value and ignore the FileTypeGroup value.
If Category is set fot FileTypeGroup, then it will look for the filetypegroup entered in the FileTypeGroup value and ignore the Extension value.
Once set, DOpus will trigger the script in a number of situations. That said, the script will do nothing if the tab has no file(s) ,matching your configured criteria.
As a test, place a txt file in your Downloads folder. Configure the script Category value to Extension and set the Extension value to txt.
Click "Apply" on the Preferences screen, then refresh the Download tab and the script should work.
Now set the script Category value to FileTypeGroup and set the FileTypeGroup value to programs.
Click "Apply" on the Preferences screen, then refresh the Download tab . Provided there are no programs in your Downloads folder, the script should find no matches and remove the tab color accordingly.
Hope this helps.
Please, if I want to add another category, is it possible?
Yes. Start here: https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Groups.htm
Whatever groups you add would need to be added in the script, as well. You can look at the script in a text editor like Notepad to see where and how the groups are referenced.
You put a lot of effort into this script indeed.
Thanks