How to 'enclose' tags when importing a PDF

I want to automate the ingestion of a bunch of PDFs where I do have the PDFs themselves as files in a folder and in one accompanying CSV file some metadata to each PDF: URL, keywords, and a published date.

I want to import the PDFs into Devonthink and bring over the metadata:

  • For the URL I worked out I can put it in the com.apple.metadata.kMDItemWhereFroms field of the macOS file metadata
  • The published date carries over when I set the modified date of the PDF file to it.

How can I carry over the keywords to the Devonthink tags of the PDF ?

There’s kMDItemKeyword(s?) field, I think. If that does not work, a script should

1 Like

You could use the extended attribute for Finder tags (com.apple.metadata:_kMDItemUserTags)

1 Like

Thanks. Will try both.