Skip to content

Updating custom metadata fields #1

@LeapingLue

Description

@LeapingLue

Hi there,
thanks so much for this great contribution that works nearly seamlessly so far.

One thing that I've noticed is that updating the dict for Custom MetaData-Attritbutes does not seem to work.

Assuming I've got a custom meta field called "NameDate" this should work and doest (btw) return the value I set in DevonThink while not returning the new value after adjusting it. Do you have any idea why that is?

from pydt3 import DEVONthink3

dtp3 = DEVONthink3()

inbox = dtp3.inbox

# get selected records
records = dtp3.selected_records

print(records[0].custom_meta_data["mdnamedate"])
records[0].custom_meta_data["mdnamedate"] = "newvaalue"
print(records[0].custom_meta_data["mdnamedate"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions