mpco / AlfredWorkflow-DEVONthink-Search

Powerful Tool for Searching in DEVONthink.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access custom meta data?

swj1442291549 opened this issue · comments

New to javascript with AppleScript. Just wonder how to read custom meta data of the record.

Would be great if you could give an easy example?

tell application "DEVONthink 3"
	set theRecord to (get record with uuid "1967582A-890A-42D2-AC94-DE9A1E69E6F2")
	get custom meta data for "metaDataName" from theRecord
end tell

image

Great thanks for your help.

Actually I have figured out how to read custom data with AppleScript, but I don't know how to do it with javascript (implemented in search.js as line 47)
var itemName = record.name()

DNt.getCustomMetaData({for: "metaDataName", from: record})

Great thanks :)