add new key/item/attribute to metadata

Discussion regarding all scripting related questions
Please DO NOT post to this thread anything that is not directly related to scripting of Capture One.

add new key/item/attribute to metadata

Postby NNN636795188989988796 » Thu Dec 06, 2018 11:32 am

Hello everyone,
This is my first post here,
I am into CO 12 + Applescript
I was able to read file name and put it in one of already existed items into metadata, but what I really need is to create a new item and add file name into it,

Any idea/hint/sample code for how I can do so?
NNN636795188989988796
 
Posts: 5
Joined: Tue Dec 04, 2018 12:14 pm

Re: add new key/item/attribute to metadata

Postby Eric Nepean » Thu Dec 06, 2018 9:39 pm

I’m unsure about you want.

Is it that you want to add a file name into a currently empty but existing metadata, or do you want to create some completely new kind of Metadata, and put your meta data into it?

Or something other than the above two interpretations?

If you supply some information about how you shall use this it would be helpful.
Cheers, Eric
[late 2015 iMac, 4GHz i7, 24GB RAM, external SSDs. GX8, E-M1, GX7, GM5, GM1 ....]
Eric Nepean
 
Posts: 320
Joined: Sat Oct 25, 2014 8:02 am

Re: add new key/item/attribute to metadata

Postby NNN636795188989988796 » Fri Dec 07, 2018 2:45 pm

I want to add new item to metadata then add the file name to it,
I already know how to get and add file name to item in metadata which is already exists but how to create new item in the metadata, this is my questions?
NNN636795188989988796
 
Posts: 5
Joined: Tue Dec 04, 2018 12:14 pm

Re: add new key/item/attribute to metadata

Postby Eric Nepean » Fri Dec 07, 2018 4:19 pm

Capture One variants have many IPTC metadata fields, all are writeable, typically most are empty.

I’m pretty sure that it is not possible to create a new Metadata field e.g. mySpecialSortOrder, or I would have used that already.

Instead I find an empty IPTC field that I will never use, and use that (hijacking). After doing this for some years, I now think that a string In a hijcked IPTC field should perhaps start with a short string that identifies what kind of data it is, e.g. [SSO]. I have not done this yet, but I think it would have prevented some of the confusion I occasionally run into.
Cheers, Eric
[late 2015 iMac, 4GHz i7, 24GB RAM, external SSDs. GX8, E-M1, GX7, GM5, GM1 ....]
Eric Nepean
 
Posts: 320
Joined: Sat Oct 25, 2014 8:02 am

Re: add new key/item/attribute to metadata

Postby NNN636795188989988796 » Sat Dec 08, 2018 6:15 pm

Thank you so much for you reply
NNN636795188989988796
 
Posts: 5
Joined: Tue Dec 04, 2018 12:14 pm


Return to Scripting



Who is online

Users browsing this forum: No registered users and 1 guest