How to fill @keywords?

Started by cytochrome, September 17, 2014, 03:54:08 PM

Previous topic - Next topic

cytochrome

My aim and reasons are similar to those of jack@vankinsbergen (https://www.photools.com/community/index.php?topic=3046.0) : get the core part of my cataloging safe in the image files. To me this is essentially the categories.

For now I only want to transfer the people in my QUI (WHO) category to @keywords so they get written to the image files. I did it on some folders, it works but is tedious. I suppose there a re better methods than what I do presently.

What I do:

- select all pictures in a folder and mark them with a pin
- filter on the pin and file type so I see only these pictures
- go to the left hand cat tree, hit the first name
- CTRL-A to select all pix from the folder with this guy
- on the right hand cat panel click on the corresponding @keyword (some I had to create)
- continue with each person
- return to the full folder
- commit the changes  by click on the pencil.

I have organized the @keyword QUI structure similar to the cat QUI tree so the keywords appear in my perso metadata panel as for example Hierarchical Keywords   QUI|Famille|nous|Adèle; QUI|Famille|nous|Louise.

In the image (raw or jpg) the IPTC shows only Adèle and Louise which is perfect. In the XMP it is "Hierarchical Keywords QUI|Famille|nous|Adèle; QUI|Famille|nous|Louise" which is idiotic and a waste of space.
So two questions:

- is there a shorter way to transfer the categories to @keywords
- how to write only the name (that's the leaf?) ?

I read the Help about thesaurus and groups. Presently I don't use any thesaurus. Do I really have to go through this step to indicate to Imatch that Louise is Louise and not QUI|Famille|nous|Louise? Of course I can undo the @keywords tree structure so to have Adèle and Louise directly under @keywords, but the grouping makes finding them much easier.


Francis

Ferdinand

#1
Eh?  I've written several posts on this precise subject (converting categories to keywords) in the last week or so.  Look at my recent posting history.  The most complete one is
https://www.photools.com/community/index.php?topic=3232.msg21440#msg21440
But there's also all this advice we've been giving LaneRellis and Canay.

This was written before 5.2.6 came out, and now you don't need the bits relating to XMP::dc\Subject as IMatch 5.2.6 now takes care of all the flat keywords for you automatically.  I need to edit that post and turn it into a FAQ.  So the short answer is use a metadata template.

As for the thesaurus, you can populate it automatically from @Keywords once you've done the migration.  If you want to use Group or Exclude you may want to populate it before you migrate the cats to keywords, and that's not hard either.  Just ask.

p.s.  There was a script I wrote to do this, but scripts are so 2013 (i.e. outdated).  Unless you have very specific requirements the metadata template will do what you want.

Mario

QuoteThere was a script I wrote to do this, but scripts are so 2013

By no account! ;)
It's just that IMatch 5 does many things out of the box which required a custom script in version 3.
And Metadata Templates retire many scripts which shuffle metadata around.
That variables have learned so many new tricks and all the cool formatting functions help to solve many situations which could be only handled by a custom script in IMatch 3.

But IMatch 5 scripting is more powerful than ever, and I'm sure a lot of users will make good use of it. Or create Apps using HTML and JavaScript.

Looking at the now rather impressive selection of sample Apps and Basic scripts is real fun. So much can be achieved. And users can write Import & Export modules as scripts, too. The Import Metadata into Attributes, CSV Import (often used!), the HTML Report and the new cool KML Exporter are great examples for this.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

cytochrome

Quote from: Ferdinand on September 17, 2014, 04:24:19 PM
Eh?  I've written several posts on this precise subject (converting categories to keywords) in the last week or so.  Look at my recent posting history.  ...............

This was written before 5.2.6 came out, and now you don't need the bits relating to XMP::dc\Subject as IMatch 5.2.6 now takes care of all the flat keywords for you automatically.  I need to edit that post and turn it into a FAQ.  So the short answer is use a metadata template.

...........

Eh? Eh bien I had missed your post in the "Last Keyword" thread... These things happen when the info is in the middle of a long thread and you're on the road. But thank you it shows what I was looking for : the way to define the cats in the metadata template.

Of course I had read the Help but the problem (for me) is recurrent: the Help is very complete and detailed, really stunning, but it is at times hard to find the info. In this case I had read Keywords, @Keywords, Categories, Metadata template. It is possibly right there but I didn't find it.

Of course now that I know I looked at Files in the Help, it is here in full details, but I looked for these variables in the category and keyword sections, never thought they could be described in Files.

Anyway it works fine writing only the leaf of my WHO cats into the files.

Francis

Ferdinand