I have a several Markdown files with custom meta data (from previous software). I have now added custom fields to DevonThink. Is there a script I could use to populate those custom fields from the MarkDown files please?
@chrillek . I managed to work out created, updated and Tags, but I was not able to get a meta data called “revision” from MD to DT. What do I need to add to the script please?
This has been discussed here:
I am playing with some ideas to expand my use of JXA for scripting.
The very brief script below is intended simply to explore how I can assign names and other metadata to a file in DT3.
I was hoping this example would reassign the filename of the first item in the list of selected items. Script Editor gives me “Error -2700 Script Error.” Keyboard Maestro give the error that I am assigning to the incorrect type.
What am I missing?
const app=Application("DEVONthink 3");
const names = app.…
Note that you have to use
mdrevision as key if you directly access the
customMetaData array. If you use
addCustomMetaData() (the method), use
Sorry, I still don’t get it.