automatic category based on folder names

Started by hannes_hab, August 11, 2021, 06:21:21 PM

Previous topic - Next topic

hannes_hab

if I import a folder structure with starts with a folder name containing office and a subfolder name containing project_XX which is the best way to autocreate (and assign) the categories office, projects,project_XX during import?

Mario

Why do you want to do this? This sounds like you are trying to duplicate your folder hierarchy also as categories? Would that not duplicate information?

You can assign files to existing categories during indexing (See Indexing) but you cannot create categories based on file names or folder names or whatever.

You can make IMatch run a Metadata Template during indexing and dynamically produce keywords using variables - which includes the ability to use parts of the folder and file names to produce different keywords. Keywords automatically fill the special @Keywords Category.
To do this would use Variables which extract the part of the folder and/or file name you want to produce keywords from.

Another way to deal with this would be Data-driven Categories, created based on the folder and/or file name or parts thereof. Or even based on variables, if nothing else can do the trick. This would be fully dynamic, too.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

concerning variables - I found them and the VarToy but where can I find all the possible arguments to refine the variables?

thrinn

Thorsten
Win 10 / 64, IMatch 2018, IMA

hannes_hab

I found one example for date "{Application.DateTime|format:YYYY}" with |format:YYYY
What are the possible arguments for files and folders / path - is there a complete list?

Mario

A complete list of what? When I click the "Browse Variables" button, I see




The List of File Variables in the IMatch help is a good place to start.

The formatting functions explained in the same help topic (Formatting Functions) show the many ways you can access, modify and manipulate variables.

Let us know if you tried all that and still cannot find a solution to your particular problem.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

hannes_hab

Tank you very much Mario!

I meant the "formatting functions" called "arguments" (so searching for "arguments" did not help) in another place.

I think this should help me.

I will try it tomorrow ...