Page 1 of 1

AppleScript Example: Filter XMP Keywords

Posted: Thu Jun 15, 2023 11:37 am
by neo-admin
A client recently told us that she had received a couple of thousand files from a contractor, and each of these files contained a lot of XMP keywords. That was OK, but someone had placed hundreds of these keywords in an hierarchical group named "More Keywords", so the result was confusing, and differed from the regular keywords normally used.

unwanted hGroup.jpg
unwanted hGroup.jpg (57.71 KiB) Viewed 2431 times


The client asked us if there was a way to get rid of these.

We first thought that this would be a lot of manual labor.
But no, this can be done with AppleScript!

So we wrote this #AppleScript that solves this problem:

https://www.cdfinder.de/guide/9/9.7/power_scripts.html

Re: AppleScript Example: Filter XMP Keywords

Posted: Mon Jun 19, 2023 2:00 pm
by DKPhoto
How do I make this work? I don't anything about Applescript, sadly!

Will this split all the hierarchical keywords, which is ideally what I would like to do?

Doug

Re: AppleScript Example: Filter XMP Keywords

Posted: Mon Jun 19, 2023 7:41 pm
by neo-admin
Hello,

no, this will filter out an unwanted section of existing hierarchical keywords.

Why would you want to split all your hierarchical keywords?

Re: AppleScript Example: Filter XMP Keywords

Posted: Fri Jul 28, 2023 6:35 pm
by DKPhoto
I made my hierarchies really deep early on and now it just looks a mess, and I have abandoned using hierarchical keywords now, but have lots of historical images with a long hierarchy.

I used to use topics as one of the hierarchies so it looks a mess.

I'm not sure how to attach a screen shot on here.