I’m trying to improve a script which imports pinboard.in-bookmarks to DEVONthink Pro:
[...]
set theUrl to (value of XML attribute named "href" of theElement) as string
set theName to (value of XML attribute named "description" of theElement) as string
set theTag to (value of XML attribute named "tag" of theElement) as string
[...]
then create record with {name:theName, type:bookmark, URL:theUrl, tags:theTags} in theGroup
This works, but i want to add some more information, namely:
time=“2013-03-05T12:08:02Z” -> creation date
extended=“DS18S20” -> spotlight comment
Which field does “record” support? Is there a documentation/reference to the AppleScript methods Dt offers?
A “record” is the basic data structure for a DEVONthink entity (document, group, etc.). “record” is not a field, it contains “fields” (properties).
Open ApplesScript editor and from File > Open Dictionary … browse to the DEVONthink dictionary for further information.
The best way to learn DEVONthink scripting is to evaluate existing scripts. The answers to all of your questions have been posted in the forum or are contained in the scripts the ship with DEVONthink.